kandelabr has asked for the wisdom of the Perl Monks concerning the following question:
For example: if(/^l (\w+)/) implements command 'l' that accepts an argument (nevermind detail such as validating input for now).
I am sure that this is not the best way to implement input handling but I am stucked, and google/cpan gladly supply too many links to psh. Psh is neat, but I know enough perl to use Term::Readline, and not quite enough to get ideas from much bigger programs. Melp!
- Maciek
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to write minimal command line interface?
by Aristotle (Chancellor) on Dec 27, 2003 at 06:24 UTC | |
by shushousukuriputo (Initiate) on Dec 29, 2003 at 13:03 UTC | |
|
Re: How to write minimal command line interface?
by bl0rf (Pilgrim) on Dec 28, 2003 at 02:26 UTC | |
|
Re: How to write minimal command line interface?
by delirium (Chaplain) on Dec 29, 2003 at 13:31 UTC | |
by kandelabr (Novice) on Dec 30, 2003 at 03:43 UTC |