http://qs321.pair.com?node_id=660759


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'; }