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.
In reply to Re: How to write minimal command line interface?
by delirium
in thread How to write minimal command line interface?
by kandelabr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |