4 ms·
The Perl example sounds like someone incorrectly assuming that the output from `keys` be ordered, when it's explicitely not: > Hash entries are returned in an
by gerikson 7y ago
The Perl example sounds like someone incorrectly assuming that the output from `keys` be ordered, when it's explicitely not:
> Hash entries are returned in an apparently random order. The actual random order is specific to a given hash; the exact same series of operations on two hashes may result in a different order for each hash.
Applying a `sort` to the output of `keys` is second nature to me - I'm always aware that hash entries are unordered in Perl.