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 reply to Re: (8)Exec format error: when running the script on Linux
by Anonymous Monk
in thread (8)Exec format error: when running the script on Linux
by ikkon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |