in reply to Text::CSV_XS and "binary" mode
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Text::CSV_XS and "binary" mode
by bittis (Sexton) on Jan 26, 2009 at 08:14 UTC | |
by Tux (Canon) on Jan 26, 2009 at 10:01 UTC |