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

[email protected] (Gary Yang)
Newsgroups perl.macosx
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.