in reply to Re: Text::CSV
in thread Text::CSV

It's true that Text::CSV does not directly handle multiline fields

What is your definition of "multiline fields"? Because Text::CSV does handle fields with embedded newlines. In your output code, you could have used Text::CSV's print method. (By the way, why split $line only to join it again immediately afterwards?)

Note that the last post in this thread was ~10 years ago, a lot has changed since then.

Replies are listed 'Best First'.
Re^3: Text::CSV
by wilmer_t (Novice) on Aug 25, 2014 at 20:23 UTC
    Thanks for feedback, Mr Anon :)
    Multiline, meaning embedded newlines, yes - and you are right that the post is old, but since I am closing down a project, browsing through some perl hacks I found this thread and thought it worth while to comment on just the same.
    You might be right though that I was not installing the latest Text::CSV when making this script

    As for the method at parsing and printing, well I had to do some field manipulation both during import (unsorted) and export (sorted) for which I thought my example could be of use to someone else, struggling at CSV file manipulations :)
    Updated the examples accordingly, to better illustrate this