P is for Practical | |
PerlMonks |
Re^3: Text::CSV_XS - proposed new interfaceby freddo411 (Chaplain) |
on Dec 16, 2004 at 18:41 UTC ( [id://415427]=note: print w/replies, xml ) | Need Help?? |
As for embedded newlines, the module already does (and always has) supported them. Just set binary=>1 in the call to new().Yes that's true, but my script is grabing and reading line by line, so that when I grab line one, I get data from the begining of the line up until the first EOL, which might be in a quoted field, not the true EOL. My kludge is to catch this error, append the next line to the first, and try again. Do this until the line parses correctly. That algorythm works out OK until there is a malformed data file. Now my program doesn't die until the whole file is thru an attempted read. I think the new interface will let me catch the error on a specific line read, which is a net win for me. Cheers -------------------------------------
In Section
Meditations
|
|