Hash randomization in Perl 5
问题 When Perl 5.8.1 came out it added hash randomization. When Perl 5.8.2 came out, I thought, it removed hash randomization unless an environment variable ( PERL_HASH_SEED ) was present. It now seems as if I am gravely mistaken as PERL_HASH_SEED=$SEED perl -MData::Dumper -e 'print Dumper{map{$_,1}"a".."z"}' Always kicks back the same key ordering regardless of the value of $SEED . Did hash randomization go completely away, am I doing something wrong, or is this a bug? 回答1: See Algorithmic