in reply to exec format error with CGI program

Please show us the minimal Perl code of your CGI program. Most likely, your webserver error log has more information, but without a minimal script that reproduces your problem, it's hard to tell.

How (Not) To Ask A Question has lots of good information on how to ask your questions more effectively.