in reply to Exec format error

If you use #!/usr/bin/perl -- then you don't have to do dos2unix type conversions. See Tutorials > CGI Programming > CGI Help Guide, Troubleshooting Perl CGI scripts..

Replies are listed 'Best First'.
Re^2: Exec format error
by Anonymous Monk on Dec 03, 2010 at 18:05 UTC
    Yes, the "--" on the shebang line is a nice trick to deal with potential trailing \rs.

    It isn't going to help here though, as the problem isn't that the script itself doesn't run, but rather that the webserver is also trying to execute another (non-script) file "test.html" in the same directory - which is just a webserver configuration issue.