Torgo has asked for the
wisdom of the Perl Monks concerning the following question:
Here's something that has bothered me for a while.. When I want a CGI script to send the user a file it has generated, I have no problem getting it to send the file and make a browser try to save it to disk (giving it a header mimetype of "application/binary" usually does the trick) but the browser always wants to save the file as "whatever.cgi". Is there any way to specify a different default filename, or at least a different extension? I've looked through my CGI.pm docs but haven't found anything along these lines.
I write the code while the master is away!