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


in reply to removing \n with for each

I have written this code to extract columns from a csv file ,

Arrgghhhhhh! Noooooooooo! Text::CSV

(Whew, that feels better.)

Unless your goal is to learn how to write a CSV parser, don't write code to parse CSV files; it's been done (correctly) on CPAN.


Dave