in reply to Re^6: Writing Multiple Recordsets into a CSV file
in thread Writing Multiple Recordsets into a CSV file

Corion already suggested you replace the home-grown KAP module with the more robust DBI CPAN module. You haven't done that.
  • Comment on Re^7: Writing Multiple Recordsets into a CSV file