Premature End Of Script Headers
Where to check for errors
Check domain/apache error log file.
Check /var/log/apache/suexec.log file that should give a solution.
http://httpd.apache.org/docs/current/suexec.html
Upload your script is ASCII mode
Upload your Perl script in ASCII mode.
Set the permission of the file to 755, which allows the script to be executed by everybody.
Tracking Errors in the Script
Will cause the Perl interpreter to check your script for syntax errors.
Running it without the syntax check options:
If something strange has gone wrong with your program and youre not sure where you should look for help, try the -w switch first.
It will often point out exactly where the trouble is.