Hashes are non-deterministic for security reasons. Deterministic hashtables allow attackers to do denial-of-service attacks:
If you need determistic ordering in hash tables, you should adapt the hash keys in a way that allows sort keys %hash to work.
In reply to Re: Perl hashes and non-determinism
by cavac
in thread Perl hashes and non-determinism
by Ratazong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |