Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Comparison of the parsing features of CSV (and xSV) modules

by Tux (Canon)
on Mar 01, 2008 at 16:57 UTC ( [id://671393]=note: print w/replies, xml ) Need Help??


in reply to Comparison of the parsing features of CSV (and xSV) modules

With the release of Text-CSV_XS 0.35 (Valloire), I think I have addressed the undef question enough to be really useful:

> perl -MData::Dumper -MText::CSV_XS -l \ -e 'my $csv=Text::CSV_XS->new ({ blank_is_undef => 1 });' \ -e '$csv->parse (q{1,,"", });' \ -e 'print Dumper$csv->fields' $VAR1 = '1'; $VAR2 = undef; $VAR3 = ''; $VAR4 = ' ';

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://671393]
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-24 21:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found