in reply to How to make a hash out of two arrays,one with keys and other with values?
map { $hash{ $_ } = shift @array2 } @array1; [download]