http://qs321.pair.com?node_id=431212

existem has asked for the wisdom of the Perl Monks concerning the following question:

Hello,
I have to do something i've not done before. I'm creating a system that makes reports and displays them on the screen. It works rather well actually (thanks in part to some helpful people on this forum :) But the next step is including a link to download the report. I want this to be in CSV and XLS format. Can anyone advise me the best way of doing this?

I thought I could create a separate download.cgi script which could then maybe set the content-type to be something other than text/html, which might output to the browser something? Am I on the wrong track here?

Suggestions would be appreciated, thanks as always,
Tom