Well this is a cool little thing for all of you out there
who dont know about it.
It lets you basicly just do on the fly perl code like perl -e 'code'
but in a shell like interface.
I used to use this all the time while I was coding to check simple
regex's etc etc.. the uses are endless :)
#!/usr/bin/perl -d shell
or just type "perl -de shell" at the command line

Replies are listed 'Best First'.
RE: A perl shell (sorta)
by merlyn (Sage) on Aug 15, 2000 at 16:44 UTC
    Or even simpler:
    perl -debug
    which puts you into the debugger debugging a program consisting of bug;!

    Warning: this works only on recent Perls, probably 5.004 and later. Whichever Perl where you could nestle the code up against the -e switch. Prior to that, you had to so something like:

    perl -de 0

    -- Randal L. Schwartz, Perl hacker