Don't ask to ask, just ask | |
PerlMonks |
Re: (8)Exec format error: when running the script on Linuxby Anonymous Monk |
on Apr 11, 2009 at 16:00 UTC ( [id://757037]=note: print w/replies, xml ) | Need Help?? |
I came across this thread when Googling on "(8)Exec format error:". This probably not the answer to the question asked... However, I've just had this problem and it turned out that I'd started my script with a newline and not #!/usr/bin/perl (ie I'd opened emacs hit return, then paged down to the bit of code I was working on). so the script worked as 'perl foo.pl' but not via apache Hope this helps someone.
In Section
Seekers of Perl Wisdom
|
|