# figure out the column headings from the first line my $headrow = $csvParser->getline($csvHandle); # tell the parser to use those headings as hash keys $csvParser->column_names($headrow); while ( my $hash = $csvParser->getline_hr($csvHandle) ) { print "Column Foo has value $hash->{Foo}"; }
In reply to Re: Perl-ish way to create hash from array
by tangent
in thread Perl-ish way to create hash from array
by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |