in reply to Printing to file from Text::CSV_XS
If you specify an appropriate eol value in the constructor it should use that. eg. for Unix style line endings:
my $csv = Text::CSV_XS->new({ sep_char => "\t", eol => "\n" });Update: The documentation is actually very clear on this:
When not passed in a generating instance, records are not terminated at all, so it is probably wise to pass something you expect. A safe choice for eol on output is either $/ or \r\n
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Printing to file from Text::CSV_XS
by dorko (Prior) on Jan 28, 2016 at 19:46 UTC | |
|
Re^2: Printing to file from Text::CSV_XS
by edimusrex (Monk) on Jan 28, 2016 at 17:03 UTC | |
by choroba (Cardinal) on Jan 28, 2016 at 17:08 UTC | |
by edimusrex (Monk) on Jan 28, 2016 at 17:14 UTC | |
by hippo (Archbishop) on Jan 28, 2016 at 17:09 UTC |