Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Double quotes in CSV using Text::CSV

by Tux (Canon)
on May 20, 2015 at 08:52 UTC ( [id://1127227]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Double quotes in CSV using Text::CSV
in thread Double quotes in CSV using Text::CSV

That wasn't too difficult. See this commit. It will be available in version Text::CSV_XS version 1.18, but you can get it from github already.

$ perl -Mblib -MText::CSV_XS \ ? -E'my $csv = Text::CSV_XS->new ({ quote_empty => 1 });' \ ? -E'$csv->combine (1, undef, "", " ", 2);' \ ? -E'say $csv->string' 1,,""," ",2

update I forgot I already implemented this in the perl6 version Text::CSV.


Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-23 07:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found