in reply to Re^2: No output from CGI script when using CGI::Debug
in thread No output from CGI script when using CGI::Debug

If you are trying to stream a spreadsheet to a browser, you'll need to define a different content-type. Browsers don't automatically know what the web server is sending, you define that in the content-type(also known as MIME). The code snippet above is telling the browser, "Hey, what I'm about to send you is text/html". So if the web server outputted excel binary code instead, the browser will render it as funny text.
  • Comment on Re^3: No output from CGI script when using CGI::Debug