in reply to newline substitution is removing text too
So, if you're seeing those truncations, I would assume that you are not doing exactly the same thing I did -- either you are not running that exact script, or you are not using exactly those two inputs, or you are doing something else to the data in addition to running that script. Or else you are using something to view the output which is not giving you a faithful presentation of the data.
(Have you tried using other methods to view and compare the input and the output, e.g. unix tools like "wc" or "od" or "xxd"?)
As for CSV parsing modules not doing what you want, which particular modules have you tried, and how in particular did they fail to do the right thing for you? I would expect that Text:xSV would be pretty reliable for the kind of data you describe (handling embedded line-feeds within some fields), because that was a particular feature that the module author was intent on getting right.
(updated to include the link to cpan)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: newline substitution is removing text too
by Groxx (Novice) on Jan 21, 2007 at 17:34 UTC | |
by graff (Chancellor) on Jan 22, 2007 at 03:47 UTC | |
by Groxx (Novice) on Jan 22, 2007 at 15:23 UTC | |
by graff (Chancellor) on Jan 24, 2007 at 03:54 UTC |