in reply to Premature end of script headers

You can't correct an error without knowing the error. Read the logs and find out exactly what is going wrong in each specific case.


Generally speaking, Perl 5.6.x will let you do things that older versions of Perl did not. So it's more common to have problems when developing on a recent platform and executing under an older Perl. But that isn't the case here.

If you have errors, you must drill down on each and every one to understand why you have them. Don't take it easy with errors on a Web site. Be serious about them. Understand them. Each and everyone of them. Only when you understand an error can you apply a sensible correction.
Everything went worng, just as foreseen.