Problems? Is your data what you think it is? | |
PerlMonks |
Re: grep keys in hash and retrieve valuesby moritz (Cardinal) |
on Mar 16, 2012 at 10:08 UTC ( [id://959952]=note: print w/replies, xml ) | Need Help?? |
If you want the list of matches, use an array:
This puts grep into list context, thus returning a list of all matches (and not just the number of matches).
In Section
Seekers of Perl Wisdom
|
|