If you really want to learn Perl, you must install the read-eval-print loop (REPL) utility. If you have never used this utility, I will have serious grounds to doubt your Perl skills. Unlike Ruby or Python (or most other modern high-level programming languages), Perl does not come with an interactive REPL shell, which makes no sense at all, since, due to Perl's obscure syntax, someone trying out Perl would benefit at…
simply: $ sudo cpan Devel::REPL also you can do this: $ perl -e 'print "Hello World!\n";'
It has been on my todo to try the REPL for a long time, but since Perl is the most powerful command line tool in bash, I've never seen a reason to use an interactive tool.
alias p=perl
p -e '...'
p -ne '....'
# etc.
Edit: With powerful I didn't mean "rm -rf", etc. :-)