The stupid question is the question not asked | |
PerlMonks |
Selecting particular key-value pairs in hashesby kiat (Vicar) |
on Sep 18, 2004 at 02:49 UTC ( [id://391933]=perlquestion: print w/replies, xml ) | Need Help?? |
kiat has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks, I've a hash as follows:
I'm looking for a way to get to those key-value pairs where the key has the pattern /\d+_\d+/. In order words, I would like to modify %hash so that it becomes:
How do I do that? Many thanks in anticipation :)
Back to
Seekers of Perl Wisdom
|
|