I usually use $hash{$_} = 1 for @array; instead.
In reply to Re^7: keys of hash by ambrus in thread keys of hash by prafull