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


in reply to Re: Returning value or key from a hash
in thread Returning value or key from a hash

Reversing a hash is cool but dangerous. If the original hash has repeated values, reversing it loses information.

the lowliest monk

Replies are listed 'Best First'.
Re^3: Returning value or key from a hash
by Corion (Patriarch) on Apr 07, 2006 at 16:39 UTC

    But in this case, I assume the hash is reversible, as the original post doesn't mention what to do in conflicts :)

      It worked for me just fine
      Cheers all!!