in reply to Perl-ish way to create hash from array
Maybe you want to use a hash slice slice:
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 Section
Seekers of Perl Wisdom