Re: How to run Perl script at Mac OS (Darwin) Release?

2008-03-10 Thread Packy Anderson
On Mar 9, 2008, at 11:12 AM, Doug McNutt wrote: Hashing of tools by shells has not been mentioned. It may not be part of the problem but on invocation many, if not all, shells examine the $PATH variable and make a table of executables that it finds. The table is then converted to a hashed

Re: How to run Perl script at Mac OS (Darwin) Release?

2008-03-09 Thread Igor Sutton
On Mar 9, 2008, at 12:31 PM, [EMAIL PROTECTED] wrote: 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.

Re: How to run Perl script at Mac OS (Darwin) Release?

2008-03-09 Thread Doug McNutt
Hashing of tools by shells has not been mentioned. It may not be part of the problem but on invocation many, if not all, shells examine the $PATH variable and make a table of executables that it finds. The table is then converted to a hashed lookup array in order to improve speed of response.

Re: How to run Perl script at Mac OS (Darwin) Release?

2008-03-08 Thread jeremiah
On Mar 7, 2008, at 7: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

Re: How to run Perl script at Mac OS (Darwin) Release?

2008-03-08 Thread Larry Prall
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

How to run Perl script at Mac OS (Darwin) Release?

2008-03-07 Thread Gary Yang
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?

Re: How to run Perl script at Mac OS (Darwin) Release?

2008-03-07 Thread Chas. Owens
On Fri, Mar 7, 2008 at 1:35 PM, Gary Yang [EMAIL PROTECTED] 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