4 ms·
Perl started to enforce this in 5.18 due to security issues. This also gives wider latitude to the data structures used in implementations due to the looser gua
by jevinskie 13y ago
Perl started to enforce this in 5.18 due to security issues. This also gives wider latitude to the data structures used in implementations due to the looser guarantees.
http://onionstand.blogspot.com/2012/12/are-you-relying-on-hash-keys-being.html http://onionstand.blogspot.com/2012/12/are-you-relying-on-ha...
- eCa 13y agoA minor detail: The key order in Perl hashes was always arbitrary (as opposed to in the order the keys were added) but identical hashes had the keys returned (by keys(), values(), etc) in the same order before Perl 5.18 (released about a year ago) [1]. [1] https://metacpan.org/pod/release/RJBS/perl-5.18.0/pod/perldelta.pod https://metacpan.org/pod/release/RJBS/perl-5.18.0/pod/perlde...