xiper has asked for the wisdom of the Perl Monks concerning the following question:
I have a command line based perl program that currently uses a basic prompt loop, something like:
I realise this may turn out to be overly complex, but i would be interested to find out what would be required. I've had a quick look at Curses, although not sure it's what i'm after. Any pointers & examples would be greatly appreciated.while( 1 ) { print '> '; chomp( $cmd = <STDIN> ); &do_stuff( $cmd ); }
- ><iper
my JAPH: print"Just another Perl hacker\n"; # ^ look, no space! pretty tricky hey?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl-based command line history?
by esh (Pilgrim) on Aug 15, 2003 at 00:03 UTC | |
by xiper (Friar) on Aug 15, 2003 at 00:56 UTC |