Hello,
I believe the default is CRLF, so for Mac you may need
this line:
$dbh->{'csv_eol'} = "\015"; # lines end with ctrl-m
Some other notes.. Vertical tabs, binary/two-byte code, and Excel may
also mess up your data. I rebuilt SQL-HTML to use the
DBD::CSV SQL wrapper for a couple projects of mine, and
had to deal with unsupported functions, so careful of other
SQL commands you might take for granted like list tables.
Also you might also include "use Text::CSV_XS" (changing
the default field separator to the pipe symbol) for direct
manipulation routines but I found the quote methods to be
spooky especially with Japanese data. Always safer to roll
your own.
Hope this helps,
Matt Rosin