If you want to zip two arrays into a hash, you could trymy @keys = qw( key1 key2 key3 ); my %hash; map {$hash{$_}=0} @keys;
@keys = qw( a b c ); @values = qw ( 1 2 3 ); my %hash; $hash{$_} = shift @values for @keys;
In reply to RE: Using map to interlace an array
by pandr
in thread Using map to interlace an array
by athomason
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |