I am not very well versed when it comes to perl. I have a perl script I would like to run. It ran easliy on my roommate's PC after he downloaded activeperl, but on my mac I can't seem to find any way to get it run. I've tried downloading activepearl for Mac OS X and a series of other programs. I've also tried to using terminal, and nothing is working. Any suggestions?
TJ Courtney
Well, this is part of the basics of Perl. The first chapter of most books cover this topic.
Mac OSX is a unix based OS, so, you need to:
1. Ensure that the script has permissions set correctly.
2. Ensure that the first line in your Perl script is the shebang line (ie: #!/usr/bin/perl or whatever the path to your Perl interpreter is on that OS)
3. If 1 and 2 are done, then you should be able to simply type "script.pl" on the command line (where script.pl is the name of your perl script) and it should run.
Regards,
Jeff