http://www.perlmonks.org?node_id=171169


in reply to Using RegExp with hashes and returning multiple values

Match against the keys of the hash.

But you might be in luck: CPAN has Tie::Hash::Approx and Tie::Hash::Regex, one of which might be suitable for you.

  • Comment on Re: Using RegExp with hashes and returning multiple values