Parsing CSV files with embedded newlines in Perl

Need to parse CSV (comma-separated values) files which contain embedded newlines in the fields, as produced by many applications including MS Excel? The usual Perl modules Text::CSV, Text::CSV_XS and CSV.pm can’t do it. Fortunately there is one that can, called Text::xSV. Find it on CPAN. I’m posting about it here to raise awareness because Google searches threw up lots of people asking about this but the answer was not obvious.

One thought on “Parsing CSV files with embedded newlines in Perl”

Leave a Reply

Your email address will not be published. Required fields are marked *