in reply to Getting the keys of identical values in a hash
Note that you're defining the hash incorrectly; you need () not {}. You're storing a hashref as the only key of %hash, with no values. This is a good reason to use warnings;; then you get something about expecting an even-sized list.