jrod16 has asked for the wisdom of the Perl Monks concerning the following question:
THANKS!my $csv = Text::CSV->new ({ binary => 1, auto_diag => 1, eol => $/ }); open my $fh, ">:encoding(utf8)", $filename or die "$filename: $!"; $sth = $dbh->prepare("$query") or error($q, "Problem with database cal +l"); if($sth->execute) { while(@dat = $sth->fetchrow) { $csv->print($fh, \@dat) +; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CSV EOL Question
by Tux (Canon) on Jan 22, 2014 at 15:17 UTC | |
by jrod16 (Initiate) on Jan 22, 2014 at 18:13 UTC | |
by Tux (Canon) on Jan 22, 2014 at 18:28 UTC | |
|
Re: CSV EOL Question
by Eily (Monsignor) on Jan 22, 2014 at 16:02 UTC |