The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 11-22-2008
adc22 adc22 is offline
Registered User
  
 

Join Date: Nov 2008
Location: Bangalore, India
Posts: 15
Quote:
Originally Posted by jim mcnamara View Post
first off :
change the shebang to be on the FIRST line of the perl script, in the first lefthand column.

Second: If that does not work, then

Code:
jmcnama> which perl
/usr/local/bin/perl

The which command tells you where perl lives. Change the first line to point to that:
I am making up something here, use what your system says:

Code:
#!/usr/local/bin/perl
===================================================


Thanks jim
Which perl on my cygwin gives
cygdrive/c/Perl/bin/Perl

But even if I use this line I get the previously mentioned errors .!