You might also have a look at Tie::Hash::Regex
In reply to Re: Selecting particular key-value pairs in hashes by steves in thread Selecting particular key-value pairs in hashes by kiat