in reply to Emacs: Submit a Perl Script
don't forget to mention the valuable M-x cperl-check-syntax which also depends on mode compile. Also very useful: M-x cperl-perldoc which is context sensitive.
In case you want to pipe your buffer contents to an external perlprogram and have the output replace the sent content try to mark a region and go C-u M-! perlprogramm.
To run your program you might also try M-x executable-interpret. I seem to have bound a key to that eons ago, but didn't use it. I will give it a try during the next days ;-)
you begin bashing the string with a +42 regexp of confusion