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

Thanks a lot for all comments posted here.
looking into the above code, How can we say the output will be "3" .... Is that possible?
Thanks
  • Comment on Re^2: The strange ordering of hash values

Replies are listed 'Best First'.
Re^3: The strange ordering of hash values
by Herkum (Parson) on Apr 19, 2007 at 17:38 UTC

    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.

      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