in reply to How to write minimal command line interface?
perl -e 'while(1) {print "::> "; $_=<STDIN>; print $/,eval $_ || '0'; +print "\n$@"}'
...but perhaps you could tell us more about what you are trying to do, some code you have for it, etc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to write minimal command line interface?
by kandelabr (Novice) on Dec 30, 2003 at 03:43 UTC |