I created another Perl script. Placed it on the same Linux machine in the same directory as all of my other scripts. I used the same first line as other scripts.
and I checked to make sure that perl was in /usr/bin and I still get the error.Code:#!/usr/bin/perl
": bad interpreter: No such file or directory"
I don't really know what is wrong here. If I use perl myScript.pl it runs fine. Any idea why this error appears?
Visit My Google Group Here: Web Development Innovation
I've also seen this error when there is a dos linebreak in the perl script. Try running dos2unix <file.pl> and see if that fixes the problem.
The interpreter might have been removed at some point; manually go to /usr/bin and make sure it's still there. If it is, I don't know what to tell you.
My other car return the first item in a list.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks