Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
If it is really perl code being entered, then the bare bones are easy enough, e.g.:
The above needs some improvement, for example, eval is not as powerful as perl -e. A bigger challenge by far for a serious 'perl shell' would be to provide the advanced features, e.g. inline editing, history recall/substitution etc., that are available for e.g. ksh, so that the fledgling perl shell competes well enough with established shells. Update In case anyone wonders, the loop exits when the user enters 'exit', because eval 'exit' does indeed exit the interpreting program. -M Free your mind In reply to Re: Interactive Perl Interpreter
by Moron
|
|