in reply to Re: Running Perl Scripts on a Mac?
in thread Running Perl Scripts on a Mac?

One more typo -- you'd type scriptname.pl after you've followed the rest of your instructions. As with any other perl box, you can run scripts one of two ways from the command line:

Placing the files in your $PATH.
If you want to call the file as the name of the file (eg, 'script.pl', then you'll want to use the first two paragraphs -- place the file in your $PATH, make sure it has execute (chmod u+x script.pl), and the proper shebang line... but you call it without calling perl on the command line.
Calling the perl executable with an argument.
This will not search your path, and will only search your local directory (or whatever path you specify. When called this way, you need perl in your path, but not the script. Also, the script doesn't need a shebang line, or be executable.

Update: if you want to make sure perl is in your path, type which perl at the command line. It's installed by default at /usr/bin/perl (but without critical header files that are needed to build new modules, at least in 10.3 server, as I found out today).