Change the she-bang (#!) line to read:
#!/usr/bin/perl -w
That's the location of the default perl installation on OS X.
- Larry
On Mar 7, 2008, at 1:35 PM, Gary Yang wrote:
Hi,
Below is my Perl script. The script named, test1.pl
test1.pl
#!/usr/local/ActivePerl-5.10/bin/perl -w
print "$^O\n";
I have to type, "perl test1.pl" in order to run it. I got command
not found if I simply typed test1.pl. Can someone tell me why and
how to fix it?
test1.pl
-bash: test1.pl: command not found
Thanks
Gary
---------------------------------
Never miss a thing. Make Yahoo your homepage.