http://www.perlmonks.org?node_id=1033309


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! :-)