|P is for Practical|
Re: The future of Text::CSV_XS - TODOby Tux (Monsignor)
|on May 30, 2007 at 08:17 UTC||Need Help??|
I now understand the fuzz people make about embedded newlines. Text::CSV_XS has always been able to deal with that (well, maybe not always, but at least for a long time already). The problem that people might have is reading the line in the perl script. Obviously,
Will horribly fail, as <> will break too early.
The most recent snapshot now contains a t/45_eol.t, that tests all possible eol combinations. Have a look to see that the way to parse CSV with embedded newlines should be done similar to:
or, if you open files yourself, like:
I'm still thinking about the best way to add this to the docs.
Enjoy, Have FUN! H.Merijn