No such thing as a small change | |
PerlMonks |
Re: grep for hash?by Anonymous Monk |
on Jul 07, 2009 at 11:45 UTC ( [id://777844]=note: print w/replies, xml ) | Need Help?? |
Not me
my %new = map { $_ => $orig{$_}; } grep {/$my_regexp/ } keys %orig;
In Section
Seekers of Perl Wisdom
|
|