diff options
-rw-r--r-- | lib/Hash/Util.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Hash/Util.pm b/lib/Hash/Util.pm index 90a8e5aaa5..c7350f6593 100644 --- a/lib/Hash/Util.pm +++ b/lib/Hash/Util.pm @@ -178,6 +178,15 @@ sub unlock_hash (\%) { =back +=head1 CAVEATS + +Note that the trapping of the restricted operations is not atomic: +for example + + eval { %hash = (illegal_key => 1) } + +leaves the C<%hash> empty rather than with its original contents. + =head1 AUTHOR Michael G Schwern <schwern@pobox.com> on top of code by Nick |