in reply to easy way to extract a hash from an array?

How else would you find something other than look for it? Personally I think two lines of code isn't exactly long winded. You could write a subroutine if you have to do this a few times that accepts your AoH and the string you are searching for. But yes, you still have to loop through it.

  • Comment on Re: easy way to extract a hash from an array?