in reply to How to dereference when hash key is referenece

You could use Tie::RefHash which preserves the dereferencability of the hash key references (by storing them in a parallel array if I recall correctly.

Or you could use Devel::Pointer to unsmash the numbers from the keys back into usuable references. This requires that you remember what type of reference that you smashed in teh first place. Use with care :)


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: How to dereference when hash key is referenece