in reply to Re^3: Text CSV_XS memory crash
in thread Text CSV_XS memory crash

2. You can still have a hashref:

my $csv = Text::CSV_XS->new ({ binary => 1, auto_diag => 1 }); open my $fh2, "<:encoding(utf8)", $file or die "$file: $!"; my $columns = $csv->getline ($fh2); for (@$columns) { s/^\s+//; s/\s+$//; } my %row; $csv->bind_columns (\@row{@$columns}); while ($csv->getline ($fh2)) { process_row (\%row); }

Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^5: Text CSV_XS memory crash
by spazm (Monk) on Feb 05, 2011 at 21:44 UTC
    thanks