How can I use perl to generate and send csv's on the fly? I've seen php examples, but can't get them ported properly to perl. I also want to avoid adding extra Perl modules. Any help is greatly appreciated.
Thanks!
- WJB
print "Content-type: application/vnd.ms-excel\n\n";
print "Content-disposition: attachment; filename=mydata.csv\n";
print "Pragma: no-cache\n";
print "Expires: 0\n";
Any ideas anyone?
Thanks,
- Warren
print "Content-type: application/msexcel\n";
print "Content-disposition: inline; filename=\"test.csv\"\n";
print "Pragma: no-cache\n";
print "Expires: 0\n\n";
The simple key was to not double-break (\n\n) until I finished printing the headers.
Thanks all,
- WJB