in reply to Populating a hash-ref from multiple arrays with slice?
Here is the equivalent of toolic's solution, in one line:
my $h={map{$a1[$_]=>{Metadata=>$a2[$_],Submitted=>$a3[$_]}}0..$#a1};
"You're only given one little spark of madness. You mustn't lose it." - Robin Williams
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Populating a hash-ref from multiple arrays with slice?
by FreeBeerReekingMonk (Deacon) on Apr 16, 2015 at 20:45 UTC | |
by FreeBeerReekingMonk (Deacon) on Apr 16, 2015 at 21:10 UTC |