Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^2: Accessing cells in CSV files

by space_monk (Chaplain)
on May 13, 2013 at 15:46 UTC ( #1033309=note: print w/replies, xml ) Need Help??

in reply to Re: Accessing cells in CSV files
in thread Accessing cells in CSV files

Text::CSV_XS or Text::CSV will also handle tab separated values (TSV) like wot we appear to have 'ere.

One of the reasons for using libraries is that the raw method you proposed will handle most cases but won't handle escaped/quoted forms if they exist in the data.

If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2016-10-22 12:27 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (294 votes). Check out past polls.