Did you consider using getline () instead of <> and parse ()?
my $csv = Text::CSV-> new ({ binary => 1 }); while (my $row = $csv->getline (*INFILE) { my @fields = @$row; } $csv->eof or $csv->error_diag;
You can change the loop to catch your trash records.
In reply to Re: Text::CSV_XS and "binary" mode
by Tux
in thread Text::CSV_XS and "binary" mode
by bittis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |