‘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);
- Spry with HTML codes/CDATA in XML
- Fix google anlaytics in magento custom template
- Array sorting problem posted from hardwarezone
- Posting Source Code in WordPress
- Installation of Magento CE 2.3.5 in XAMPP Windows 10