Think about Loose Coupling | |
PerlMonks |
Re: How to get Keys from hash having same value?by Punitha (Priest) |
on Jan 07, 2008 at 06:10 UTC ( [id://660764]=note: print w/replies, xml ) | Need Help?? |
Hi isha, If you want to manipulate the simple hash, then your hash will be like this, my %myhash = ( 1 => 'a', 2=> 'b', 3=> 'a', 4=>'c');To manipulate this simple hash, you can do like
But you created the hash as
which is anonymous hash reference. To manipulate this hash reference, then you can do like
Punitha
In Section
Seekers of Perl Wisdom
|
|