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
In reply to Re: Printing to file from Text::CSV_XS
by hippo
in thread Printing to file from Text::CSV_XS
by edimusrex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |