|The stupid question is the question not asked|
bad interpreter: No such file or directoryby carric (Beadle)
|on Jan 20, 2004 at 07:56 UTC||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.pl
it gives the message: bad interpreter: No such file or directory
IF you go into the script and change#!/usr/bin/perl
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.
I did not see any control chars, but ran dos2unix anyway on it, and then it started working. Really strange.Thanks everyone!!