For variation from the hash slices posts:
my @a = ('one', 'two', 'three'); my @b = (1, 2, 3); my %result = map { $a[$_] => $b[$_] } 0..$#a;
I bet it's slower than a hash slice, though.
In reply to Re: Combining two lists into a hash
by ikegami
in thread Combining two lists into a hash
by fthiess
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |