Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^4: Export CSV v2

by Tux (Monsignor)
on Oct 09, 2012 at 07:00 UTC ( #997937=note: print w/ replies, xml ) Need Help??

in reply to Re^3: Export CSV v2
in thread Export CSV v2

Don't! Text::CSV_XS and Text::CSV both dynamically support \r \x0D, \n \x0A, or \r\n \x0D\x0A even if they change per line if eol is not specified.

You might want to do so on output though:

print "Writing to file: $ofile_name\n"; $templateTextCopy =~ s{(?: \r\n | \r | \n )} {\r\n}gx; # <-- make line ending consis +tent open my $fh, ">", $ofile_name or die "$ofile_name: $!"; print $fh $templateTextCopy; close $fh;

Enjoy, Have FUN! H.Merijn

Comment on Re^4: Export CSV v2
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997937]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2015-12-01 09:00 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (797 votes), past polls