Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Text::CSV

by Anonymous Monk
on Aug 20, 2014 at 14:32 UTC ( [id://1098121]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1098121]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-19 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found