in reply to How can I assign the elements in an array to only the key values in a hash?
my %hash1 = map {$_ =>1 } @array; [download]