Which is the quickest way of converting an array to hash keys

I have an array
@ARRAY = qw ( a b c d e );

# Convert array to hash keys , so can easily check for exists
# The values of the hash are immaterial to me

@HASH{@ARRAY}=@ARRAY;

....
....
foreach (@SOME_OTHER_ARRAY) {
	next if(exists($HASH{$_}));       # This is why I require a hash
.....
....
}


Can I have a faster way than this @HASH{@ARRAY} = @ARRAY;

Thanks
Ram


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to