2 ms·
IIRC a Perl hash has never been in the order of key add order, but rather that two hashes, with its keys added in the same order, returned their keys in the sam
by eCa 12y ago
IIRC a Perl hash has never been in the order of key add order, but rather that two hashes, with its keys added in the same order, returned their keys in the same order, even in separate executions. Now hash key order is always "random".
Tie::IxHash [1] is available on Cpan.
[1] https://metacpan.org/pod/Tie::IxHash https://metacpan.org/pod/Tie::IxHash