For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > February 2007 > How to mimic a CLI using perl with STDIN









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to mimic a CLI using perl with STDIN
Dave Gauthier

2007-02-15, 7:00 pm

I would like to mimic linux command line behavior from inside a perl
script.

I guess the only thing I'm missing us the up/down arrow behavior
(scrolll up/down the previous input line(s) stack)



Is there a way to do this?



Thanks

-dave


Tom Phoenix

2007-02-15, 7:00 pm

On 2/15/07, Gauthier, Dave <dave.gauthier@intel.com> wrote:

> I would like to mimic linux command line behavior from inside a perl
> script.
>
> I guess the only thing I'm missing us the up/down arrow behavior
> (scrolll up/down the previous input line(s) stack)


It sounds like you're talking about the "history" functionality that
most Term::ReadLine implementations provide. Check out that module's
documentation for more information.

Good luck with it!

--Tom Phoenix
Stonehenge Perl Training
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com