in reply to Array searching, grep, first

You're going to have to look through the entire array one way or another. If your data set has more than a few items in it, it will be more efficient to convert the array to a hash and do many lookups on that, instead of doing many searches on your array.