in reply to How to get over 'premature end of script headers' in Apache?
For debugging purposes, you can try running the script from the command line; then you will see exactly what the program is outputting.
If using CGI.pm, you can pass in any required parameters to replicate form input:
scriptname fee=fi fo=fum foo=bar
In Section
Seekers of Perl Wisdom