in reply to Have hash of arrays. Want to test if variable is a member of any of the arrays

In addition to what's been said, there're also better algorithms (better then linear search, that is). Binary search is what you normally want for fast searches in arrays... (but you need sorted arrays) List::BinarySearch looks good, or even Tree::Binary::Search, depending on your needs.
  • Comment on Re: Have hash of arrays. Want to test if variable is a member of any of the arrays