http://qs321.pair.com?node_id=10997


in reply to Array to Hash

Yet another way
map { $hash{$_} = 1 } @array;