in reply to The strange ordering of hash values

Hashes are unordered. The order in which entries are added is not preserved. The order in which you get them out via keys or values is not dependable.

Note, though, that you can rely on the order being the same for keys and values, whatever that order is. For example, you can copy one hash into another by doing this:

@b{ keys %a } = values %a;

Furthermore, the above is only the default. It is possible to override this behavior on a hash-by-hash basis using a tie-based module from CPAN, such as Tie::IxHash.

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