in reply to How to match hash values

see my snippet "Inverting a hash to get all keys for this value".

-- Randal L. Schwartz, Perl hacker