in reply to Re^6: keys of hash
in thread keys of hash

I usually use $hash{$_} = 1 for @array; instead.