in reply to If a hash key is a reference...

A hash key is never a reference, even if it looks like one. Hash keys are automatically stringified, which means that they're changed into strings, and a stringified reference can no longer be treated as a reference.