Since you don't actually include the relevant part with the printing of the headers, it would be rather difficult to help you. Instead of 'parsform.cgi', try
CGI.pm. It is easy to use and won't open blatant security holes involved with those copy-n-paste solutions. If it still doesn't work after replacing your stuff with
CGI stuff, then come back and complain....
try this:
use CGI:
my $q=new CGI;
print $q->header;
print '<html><body>Test</body></html>';
AgentM Systems nor Nasca Enterprises nor
Bone::Easy nor Macperl is responsible for the
comments made by
AgentM. Remember, you can build any logical system with NOR.