Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: help needed in retrieving the hash key

by murugu (Curate)
on Apr 05, 2006 at 09:51 UTC ( #541323=note: print w/replies, xml ) Need Help??


in reply to help needed in retrieving the hash key

Hi,

As you mentioned that keys and values are unique,

my %hash2 = reverse %hash1;

Now the keys and values got interchanged.

Regards,
Murugesan Kandasamy
use perl for(;;);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://541323]
help
Chatterbox?
[Yary]: Any monk want to point me to a post discussing style- what order to declare strict, warning, package, and the modules to "use"?
[marto]: yikes
[marto]: and this is a bank you say?

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2018-01-23 16:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (249 votes). Check out past polls.

    Notices?