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.
In reply to Re: Perl-ish way to create hash from array
by moritz
in thread Perl-ish way to create hash from array
by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |