in reply to Perl-ish way to create hash from array
my %csvColumns; @csvColumns{@csvColumns} = (0..$#csvColumns);
Or you can the combination of $csvParser->column_names(@csvColumns) and $csvParser->getline_hr to obtain a hash ref from the Text::CSV module directly.
|
|---|