Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: The future of Text::CSV_XS - TODOby Tux (Canon) |
on Jun 25, 2008 at 07:15 UTC ( [id://693898]=note: print w/replies, xml ) | Need Help?? |
Text::CSV_XS comes with examples. There is csv-check and parser-xs.pl. Both show ways to parse (broken) CSV files reliably. Take the latter as an example. Making fatal errors recoverable is very hard, as the module does not buffer. Once the stream has been read, it is hard to backup in it. You can still probably use $csv->error_input () after a caught eval'ed failure. Enjoy, Have FUN! H.Merijn
In Section
Meditations
|
|