in reply to Re: Text::CSV_XS and "binary" mode
in thread Text::CSV_XS and "binary" mode

Hey there, The following didn't work :( I now only get 44 rows of records before it breaks. I also tried setting binmode on the file as suggested. It still breaks when it meets a carriage return character. Where should i be catching my trash records?

Replies are listed 'Best First'.
Re^3: Text::CSV_XS and "binary" mode
by Tux (Canon) on Jan 26, 2009 at 10:01 UTC

    If it breaks because of parsing errors, $csv->error_diag () should give you a clear error message, which could hint you towards using other options. Showing the error message could help others here to give you advice on how to continue.


    Enjoy, Have FUN! H.Merijn