]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - lib/Variable/Magic.pm
Revert "clear magic only applies to arrays and hashes"
[perl/modules/Variable-Magic.git] / lib / Variable / Magic.pm
index 7e16527f5307b87bc0620e1f440ee87e7c54e1ae..9e24440331643d8857c1f19824f68e90d9380f6e 100644 (file)
@@ -125,7 +125,7 @@ The callback has then to return the length as an integer.
 
 C<clear>
 
-This magic is invoked when a container variable is reset, i.e. when an array or a hash is emptied.
+This magic is invoked when the variable is reset, such as when an array is emptied.
 Please note that this is different from undefining the variable, even though the magic is called when the clearing is a result of the undefine (e.g. for an array, but actually a bug prevent it to work before perl 5.9.5 - see the L<history|/PERL MAGIC HISTORY>).
 
 =item *