On Wed, 9 Jan 2002, Anthony Mason wrote:

> Welcome to Darwin!
> [localhost:~] anthonym% ls
> Applications    Library         Perl Stuff      Sites           
> mac_perl.pl
> Desktop         Movies          Pictures        ex1_1.pl
> Documents       Music           Public          ex1_1_perl.pl
> [localhost:~] anthonym% chmod +x mac_perl.pl
> [localhost:~] anthonym% ./mac_perl.pl
> ../mac_perl.pl: Command not found.
> [localhost:~] anthonym%
 
What would show up if you try:

 [localhost:~] anthonym% which perl

?

That should give, as your script tries, /usr/bin/perl. If you don't see
this, then your installation is messed up (possibly badly). If you do see
the correct response here, then try this next:

 [localhost:~] anthonym% perl mac_perl.pl

or

 [localhost:~] anthonym% /usr/bin/perl mac_perl.pl

and see if either of those works. 

Interestingly, I seem to be getting similar results:

[localhost Wed 7:21:54pm ~]% ls -la perltest.pl
-rw-------  1 chris  staff  48 Jan  9 19:21 perltest.pl
[localhost Wed 7:22:02pm ~]% chmod a+x perltest.pl 
[localhost Wed 7:22:09pm ~]% cat perltest.pl 
#!/usr/bin/perl
print "Perl on Mac OS X\n";

[localhost Wed 7:22:13pm ~]% ./perltest.pl 
../perltest.pl: Command not found.
[localhost Wed 7:22:17pm ~]% perl perltest.pl 
Perl on Mac OS X
[localhost Wed 7:22:22pm ~]% 


....ok, now I'm confused too. Anyone else have better ideas?


-- 
Chris Devers                           [EMAIL PROTECTED]
Apache / mod_perl / http://homepage.mac.com/chdevers/resume/


Reply via email to