Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Returning value or key from a hash

by tlm (Prior)
on Apr 07, 2006 at 14:18 UTC ( #541873=note: print w/ replies, xml ) Need Help??


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


Comment on Re^2: Returning value or key from a hash
Re^3: Returning value or key from a hash
by Corion (Pope) 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!!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://541873]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2015-07-05 02:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls