The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #2 (permalink)  
Old 11-19-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,758
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