hash_unlocked#

Report whether the hash’s keyset is not currently locked.

Synopsis#

hash_unlocked(%hash) and print "open\n";

The logical inverse of hash_locked: returns 1 on an unlocked hash, 0 on a locked one. Handy in conditions where testing for the open state reads more naturally than negating the locked one.