in reply to Running Perl Scripts on a Mac?

Make sure the perl executable is in your $PATH. And also - it must be:
perl -e myscript.pl
Update: Errto corrected this ugly mistake.
# corrected: perl -e 'code' perl 'script'


Replies are listed 'Best First'.
Re^2: Running Perl Scripts on a Mac?
by Errto (Vicar) on Mar 14, 2005 at 23:50 UTC
    No this is not correct. Perl -e is for specifying the program text on the command line. Like
    perl -e 'print "foo\n";'
    For simply running a script
    perl script.pl
    is correct.