in reply to Populating a hash from array
%myhash = map { $array1[$_] => $array2[$_] } ( 0 .. $#array1); [download]