The following Perl code will output the list in a different order on every run:
To get a deterministic output, the easiest way is to explicitly sort the keys:
For Perl, it is possible to set
PERL_HASH_SEED=0 in the environment. This
will result in hash keys always being in the same order. See
perlrun(1) for more information.
Python users can similarly set the environment variable PYTHONHASHSEED. When set to a given integer value, orders in dictionaries will be the same on every run.
Beware that the locale settings
might affect the output of some sorting functions or the