in reply to Re: Given ref to hash value, retrieve the key
in thread Given ref to hash value, retrieve the key

The reason that using references as hash keys are bad is
that the references are 'Stringified' in the hash thus:

my $val = 1; my %hash = ( \$val => 2 ); foreach my $ref (keys %hash) { print $$ref, "\n"; }

Does not yield the value 1, instead you get undef.