Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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.

Comment on Re: Need help with arrays and CSVs
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2015-08-03 17:14 GMT
Find Nodes?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...

    Results (47 votes), past polls