in reply to Premature end of script headers

Thank you all for your answers

I finally figured out where the error really was. Turns out the script file had wrong extension.

All I needed to do was to rename my_file.pl to my_file.cgi -- and it worked just fine!

Replies are listed 'Best First'.
Re^2: Premature end of script headers
by ww (Archbishop) on May 11, 2010 at 16:17 UTC
    If so, that's an issue with how Apache is configured; not an issue with Perl itself.