Premature end of script headers in perl script

‘Premature end of scrip headers’ error message refers to the script being stopped for whatever reason before it actually return any output to the browser.

The first time to check is to ensure the below codes are output first

print "Content-type: text/html\n\n";

And then to debug the error, simply add the below line(preferably after the above code).

use CGI::Carp qw(fatalsToBrowser);

Similar Posts:

VN:F [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
Premature end of script headers in perl script, 10.0 out of 10 based on 1 rating