in reply to Re^2: The strange ordering of hash values
in thread The strange ordering of hash values

If you want to print three, here you go,

print "3";

I think a better question would be, WHY do you want the answer to be 3. We cannot help if you cannot explain what you attempting to do.

Replies are listed 'Best First'.
Re^4: The strange ordering of hash values
by Anonymous Monk on Apr 19, 2007 at 18:30 UTC
    Herkum,
    sorry ... I am trying to clarify my doubt, without execution, can anyone say the output for the code is 3? that was my question. Is that possible?
      can anyone say the output for the code is 3? Is that possible?

      No. The list returned by values has an unpredictable order. There is no guarantee that the first in that list will be any given value.

      A word spoken in Mind will reach its own level, in the objective world, by its own weight