in reply to Save HTML table as CSV on local disk

Set mime type of your output using
my $in = new CGI; print $in->header('text/comma-separated-values');
and your user should automatically be prompted for an appropriate action (e.g. save file ...)
pelagic

-------------------------------------
I can resist anything but temptation.