Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Need help with arrays and CSVs

by jZed (Prior)
on Dec 26, 2007 at 20:33 UTC ( #659111=note: print w/replies, xml ) Need Help??


in reply to Need help with arrays and CSVs

From the docs for Text::CSV_XS which also apply to Text::CSV:
my $csv = Text::CSV->new ({ binary => 1, eol => $/ }); open my $io, "<", $file or die "$file: $!"; while (my $row = $csv->getline ($io)) { my @fields = @$row; }
P.S. Please use <code>...</code> tags so your code is more legible.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://659111]
help
Chatterbox?
[Corion]: choroba: Yeah, that's why I like that approach; it seems even quite obvious in retrospect to me, but many things are in hindsight ;)

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2016-12-06 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (109 votes). Check out past polls.