in reply to Inconsistent Perl code in Internet Explorer 8
The code in question is
Nope, that ain't the code, its only a fragment, and it doesn't deal with printing headers.
See code/links in Re: Perl/CGI Uploading file to the server using a upload hook is failing intermittently and don't let users assign filename, store it as metadata or escape/encode it :)
You can use DebugCGI for debugging
Work through these checklists CGI Help Guide and Troubleshooting Perl CGI scripts, they have gems like "check the logs", "keep your own logs" ...