Syntactic Confectionery Delight | |
PerlMonks |
Re: Printing to file from Text::CSV_XSby hippo (Bishop) |
on Jan 28, 2016 at 16:58 UTC ( [id://1153897]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|