in reply to How to get Keys from hash having same value?
Iterate through the keys of your hash, and look at the value of each one in turn.
for (keys %myhash) { print "$_ eq a\n" if $myhash{$_} eq 'a'; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to get Keys from hash having same value?
by Thilosophy (Curate) on Jan 07, 2008 at 07:32 UTC | |
by shmem (Chancellor) on Jan 07, 2008 at 14:19 UTC | |
by targetsmart (Curate) on Jun 03, 2008 at 13:22 UTC |
In Section
Seekers of Perl Wisdom