- I never referred to Text::CSV, but to Text::CSV_XS. Don't change the context.
- Both examples posted had three lines (which with my basic math is more than one).
- CSV should never be read as-is. It will work on the first example, but will fail when embedded newlines, quotation and escapes come into play.
- I offered the csvdiff tool, which depends on Text::CSV_XS.
- The op asked for processing (diff), not just reading (parsing) a single line.
Enjoy, Have FUN! H.Merijn