This method will be triggered when the C<untie> occurs. This can be useful
if the class needs to know when no further calls will be made. (Except DESTROY
-of course.) See L<The C<untie> Gotcha> below for more details.
+of course.) See L</The C<untie> Gotcha> below for more details.
=item DESTROY this
X<DESTROY>
=item UNTIE this
X<UNTIE>
-Will be called when C<untie> happens. (See L<The C<untie> Gotcha> below.)
+Will be called when C<untie> happens. (See L</The C<untie> Gotcha> below.)
=item DESTROY this
X<DESTROY>
CLEAR empties the hash by deleting all the key and value pairs. FIRSTKEY
and NEXTKEY implement the keys() and each() functions to iterate over all
the keys. SCALAR is triggered when the tied hash is evaluated in scalar
-context. UNTIE is called when C<untie> happens, and DESTROY is called when
-the tied variable is garbage collected.
+context, and in 5.28 onwards, by C<keys> in boolean context. UNTIE is
+called when C<untie> happens, and DESTROY is called when the tied variable
+is garbage collected.
If this seems like a lot, then feel free to inherit from merely the
standard Tie::StdHash module for most of your methods, redefining only the
=item SCALAR this
X<SCALAR>
-This is called when the hash is evaluated in scalar context. In order
-to mimic the behaviour of untied hashes, this method should return a
-false value when the tied hash is considered empty. If this method does
+This is called when the hash is evaluated in scalar context, and in 5.28
+onwards, by C<keys> in boolean context. In order to mimic the behaviour of
+untied hashes, this method must return a value which when used as boolean,
+indicates whether the tied hash is considered empty. If this method does
not exist, perl will make some educated guesses and return true when
the hash is inside an iteration. If this isn't the case, FIRSTKEY is
called, and the result will be a false value if FIRSTKEY returns the empty
=item UNTIE this
X<UNTIE>
-This is called when C<untie> occurs. See L<The C<untie> Gotcha> below.
+This is called when C<untie> occurs. See L</The C<untie> Gotcha> below.
=item DESTROY this
X<DESTROY>
As with the other types of ties, this method will be called when C<untie> happens.
It may be appropriate to "auto CLOSE" when this occurs. See
-L<The C<untie> Gotcha> below.
+L</The C<untie> Gotcha> below.
=item DESTROY this
X<DESTROY>
X<UNTIE>
You can define for all tie types an UNTIE method that will be called
-at untie(). See L<The C<untie> Gotcha> below.
+at untie(). See L</The C<untie> Gotcha> below.
=head2 The C<untie> Gotcha
X<untie>