XP is just a number | |
PerlMonks |
Re: easy way to extract a hash from an array?by MCS (Monk) |
on Feb 08, 2006 at 17:15 UTC ( [id://528858]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|