5.8.0 introduces the ability to restrict a hash to a certain set of
keys. No keys outside of this set can be added. It also introduces
the ability to lock an individual key so it cannot be deleted and the
value cannot be changed.
This is intended to largely replace the deprecated pseudo-hashes.
Restricts the given %hash's set of keys to @keys. If @keys is not
given it restricts it to its current keyset. No more keys can be
added. delete() and exists() will still work, but will not alter
the set of allowed keys. Note: the current implementation prevents
the hash from being bless()ed while it is in a locked state. Any attempt
to do so will raise an exception. Of course you can still bless()
the hash before you call lock_keys() so this shouldn't be a problem.
hash_seed() returns the seed number used to randomise hash ordering.
Zero means the ``traditional'' random hash ordering, non-zero means the
new even more random hash ordering introduced in Perl 5.8.1.
perldoc2tree.cgi: /usr/lib/perl5/5.8.8/Hash/Util.pm: cannot resolve L in paragraph 58.
perldoc2tree.cgi: /usr/lib/perl5/5.8.8/Hash/Util.pm: cannot resolve L in paragraph 58.
Note that the hash seed is sensitive information: by knowing it one
can craft a denial-of-service attack against Perl code, even remotely,
see perlsec/``Algorithmic Complexity Attacks'' for more information.
Do not disclose the hash seed to people who don't need to know it.
See also perlrun/PERL_HASH_SEED_DEBUG.