my %hash; @hash{ @array2 } = @array1; [download]
In reply to Re: Merging arrays into a hash by Masem in thread Merging arrays into a hash by pazuzu