You have received a few suggestion on how to 'invert' a hash. Note that these only work if no value is repeated in the original hash. A more general solution can be found in the very old book "Perl Cookbook". There probably is a module, but I did not find it with a quick search.