Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Using regex to extract keysby Abigail-II (Bishop) |
on Sep 24, 2003 at 21:17 UTC ( [id://294023]=note: print w/replies, xml ) | Need Help?? |
Since the hash is given to be large, one might prefer
iterating over the hash using each in a while loop. In the loop, test whether the
key matches /^\w$r$/. If not, do a next.
Abigail
In Section
Seekers of Perl Wisdom
|
|