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/perlIt 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!!In reply to bad interpreter: No such file or directory by carric
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |