summaryrefslogtreecommitdiff
path: root/lib/Hash
diff options
context:
space:
mode:
authorAndreas König <a.koenig@mind.de>2002-09-30 19:24:06 +0200
committerhv <hv@crypt.org>2002-10-02 14:09:11 +0000
commita94e8023b124b822fcd2c4e28f8dc89b1f24e54a (patch)
tree714ca651b2ed171f9290f0a65ba2f9fb245c2e41 /lib/Hash
parentc8d992ba23b3b25c3e2bc6425d5bc30f12f52be7 (diff)
downloadperl-a94e8023b124b822fcd2c4e28f8dc89b1f24e54a.tar.gz
Re: Hash::Util::lock_keys inhibits bless
Message-ID: <m3zntzwlex.fsf@k242.linux.bogus> p4raw-id: //depot/perl@17961
Diffstat (limited to 'lib/Hash')
-rw-r--r--lib/Hash/Util.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Hash/Util.pm b/lib/Hash/Util.pm
index d5e0a16dd6..0c8979d61b 100644
--- a/lib/Hash/Util.pm
+++ b/lib/Hash/Util.pm
@@ -60,7 +60,9 @@ 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 it does not effect
-the set of allowed keys.
+the set of allowed keys. B<Note>: the current implementation does not
+allow you to bless() the resulting hash, so if you want to use
+lock_keys() for an object, you need to bless it prior to locking it.
unlock_keys(%hash);