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


in reply to How to get Keys from hash having same value?

Oops:
%myhash = { 1 => 'a', 2=> 'b', 3=> 'a', 4=>'c'}
isn't gonna work. You're creating a hashref (resulting in a single scalar) on the right, but assigning it to a hash (wanting a list) on the left. You should be consistent.