Help for this page
use DBI; use PerlIO::gzip; ... while (my $row = $sth->fetch) { $csv->print ($fh, $row); }