in reply to How to make a hash out of two arrays,one with keys and other with values?
mapping is the best..... since you have large arrays
use strict; my %hash=map {@array1[$_]=>@array2[$_]} 0..$#array1;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to make a hash out of two arrays,one with keys and other with values?
by NetWallah (Canon) on Jun 30, 2009 at 13:27 UTC | |
by hnd (Scribe) on Jun 30, 2009 at 16:55 UTC |
In Section
Seekers of Perl Wisdom