X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FVariable%2FMagic.pm;h=07fa6f53d786dcf9852f8c48244d1f0030fded79;hb=ad7c749baf8ebc2ff3e49d44b414f67f13f4ebf2;hp=9944a9102df012175232d687346082c53b88a9de;hpb=77a84f75f33e3ee44e61182dec76699e23025375;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/lib/Variable/Magic.pm b/lib/Variable/Magic.pm index 9944a91..07fa6f5 100644 --- a/lib/Variable/Magic.pm +++ b/lib/Variable/Magic.pm @@ -11,11 +11,11 @@ Variable::Magic - Associate user-defined magic to variables from Perl. =head1 VERSION -Version 0.01 +Version 0.02 =cut -our $VERSION = '0.01'; +our $VERSION = '0.02'; =head1 SYNOPSIS @@ -50,7 +50,7 @@ This magic is a little special : it is called when the 'size' or the 'length' of =item C -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 reset is a result of the undefine (e.g. for an array). +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). =item C @@ -60,6 +60,24 @@ This last one can be considered as an object destructor. It happens when the var To prevent any clash between different magics defined with this module, an unique numerical signature is attached to each kind of magic (i.e. each set of callbacks for magic operations). +=head1 PERL MAGIC HISTORY + +=head2 B<5.9.3> + +=over 4 + +=item 'len' magic is no longer called when pushing an element into a magic array. + +=back + +=head2 B<5.9.5> + +=over 4 + +=item 'clear' magic wasn't invoked when undefining an array. The bug is fixed as of this version. + +=back + =head1 CONSTANTS =head2 C