in reply to When will a key shared between two hashes?

What exactly is the purpose of this question? Are you interested in the theory, or are you actually trying to apply this to something in practice, and if the latter, can you please explain what exactly? I'm not really understanding what you're getting at.
  • Comment on Re: When will a key shared between two hashes?

Replies are listed 'Best First'.
Re^2: When will a key shared between two hashes?
by gyhor (Initiate) on Dec 10, 2011 at 11:38 UTC
    It is for the theory. I was digging the last days in hv.c to understand the hash implementation for comparing it with the hash implementation in python. Everywhere (in the source, perl internals, etc.) is written, that keys are shared. but i didn't i find a way to "see" with a debugger or with Devel::Peek. So i am confused, if i understood it correctly.
      What were you expecting to see in the output of Devel::Peek? The output already shows the SHAREKEYS flag -- what else were you looking for?
        I thought, that with PEEK I have a simple way to see, that the keys are shared. The Flag SHAREKEYS is as far as i know, only die Indication that sharing is enabled. Thanks for your help!