On Mar 7, 2008, at 7:48 PM, Larry Prall wrote:
Change the she-bang (#!) line to read:
#!/usr/bin/perl -w
That's the location of the default perl installation on OS X.
That _may_ be the problem, but it is not necessarily the problem. I
believe that if there was no perl interpreter in the path that the OP
specified, bash would say -
"bash: ./test1i.pl: #!/usr/local/ActivePerl-5.10/bin/perl: bad
interpreter: No such file or directory"
But instead bash is saying "Command not found." So the OP may in fact
have a perl interpreter in the path specified on the command line, but
he is not calling the script correctly. So advising the OP to change
the shebang may be premature.
The script was not called correctly from the command line, of that we
can be certain.
Jeremiah
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.