As we sometimes say, "arrays are for ordering, hashes are for searching". If you have an array and you want to search it, you either have to turn it into a hash, or do a linear search. That's the case here.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.