A slice is the go but TIMTOWDI
# slice @hash{@ary1} = @ary2; # map %hash = map { $ary1[$_], $ary2[$_] } 0..$#ary1;
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: mapping two arrays into a hash
by tachyon
in thread mapping two arrays into a hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |