No such thing as a small change | |
PerlMonks |
bad interpreter: No such file or directoryby carric (Beadle) |
on Jan 20, 2004 at 07:56 UTC ( [id://322531]=perlquestion: print w/replies, xml ) | Need Help?? |
carric has asked for the wisdom of the Perl Monks concerning the following question: I am stumped.. I have a script for which I have verified perl is indeed where it should be, but if you execute it like this: ./script.plit gives the message : bad interpreter: No such file or directoryIF you go into the script and change #!/usr/bin/perlto #!/usr/bin/perl -w It executes.. but there are SO many errors, it doesn't work (it's a CGI script from somebody, that has "issues"). Has anyone ever seen this?? It has some "require" statements for some other perl chunks, and I was wondering if that had anything to do with it, but I edited a few scripts, and it doesn't seem to affect anything. The script lives on a local file system, and has proper permissions. Thanks a lot ahead of time. Update: I did not see any control chars, but ran dos2unix anyway on it, and then it started working. Really strange. Thanks everyone!!
Back to
Seekers of Perl Wisdom
|
|