Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Document hashref_locked() and hashref_unlocked().

  • Loading branch information...
commit 2d4a4a534b82d9909caf968160e9a66319516ac1 1 parent f622135
@jkeenan authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/Hash/Util.pm
View
8 lib/Hash/Util.pm
@@ -30,7 +30,7 @@ our @EXPORT_OK = qw(
hash_seed hv_store
);
-our $VERSION = '0.11';
+our $VERSION = '0.12';
require XSLoader;
XSLoader::load();
@@ -359,8 +359,11 @@ sub unlock_hashref_recurse {
sub lock_hash_recurse (\%) { lock_hashref_recurse(@_) }
sub unlock_hash_recurse (\%) { unlock_hashref_recurse(@_) }
+=item B<hashref_locked>
+
=item B<hash_locked>
+ hashref_locked(\%hash) and print "Hash is locked!\n";
hash_locked(%hash) and print "Hash is locked!\n";
Returns true if the hash and its keys are locked.
@@ -374,8 +377,11 @@ sub hashref_locked {
sub hash_locked(\%) { hashref_locked(@_) }
+=item B<hashref_unlocked>
+
=item B<hash_unlocked>
+ hashref_unlocked(\%hash) and print "Hash is unlocked!\n";
hash_unlocked(%hash) and print "Hash is unlocked!\n";
Returns true if the hash and its keys are unlocked.
Please sign in to comment.
Something went wrong with that request. Please try again.