in reply to Running Perl Scripts on a Mac?
You can put the scripts wherever you like on your system. However, the location should be in your PATH environmental variable, or you'll have to type the complete path to your file.
In addition, you need to make sure the files have execute permissions and that they include the shebang line as the first line (#!/usr/bin/perl) in the file.
Once you've done that, you type perl scriptname.pl on the command line in the terminal. That's all you need. :)
HTH,
/Larry
Update: Fixed a couple of typos. :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Running Perl Scripts on a Mac?
by jhourcle (Prior) on Mar 15, 2005 at 00:32 UTC | |
|
Re^2: Running Perl Scripts on a Mac?
by Spidy (Chaplain) on Mar 14, 2005 at 22:14 UTC | |
by larryp (Deacon) on Mar 14, 2005 at 22:26 UTC |