From: Andreas König Date: Mon, 30 Sep 2002 17:24:06 +0000 (+0200) Subject: Re: Hash::Util::lock_keys inhibits bless X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a94e8023b124b822fcd2c4e28f8dc89b1f24e54a;p=p5sagit%2Fp5-mst-13.2.git Re: Hash::Util::lock_keys inhibits bless Message-ID: p4raw-id: //depot/perl@17961 --- diff --git a/lib/Hash/Util.pm b/lib/Hash/Util.pm index d5e0a16..0c8979d 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: 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);