my @a = ('one', 'two', 'three'); my @b = (1, 2, 3); my %result; @result{@a} = @b; [download]
In reply to Re: Combining two lists into a hash by johnnywang in thread Combining two lists into a hash by fthiess