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(;;);
In reply to Re: help needed in retrieving the hash key
by murugu
in thread help needed in retrieving the hash key
by singam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |