Are you producing a Content-type line anywhere? (The header method of CGI does that...)
In reply to Re (tilly) 5: Debugging Perl .cgi forms by tilly in thread Debugging Perl .cgi forms by nysus