in reply to How to make a hash out of two arrays,one with keys and other with values?
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 |