X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FVariable%2FMagic.pm;h=aa7ee22136d71a0c31849f6a0dafed9f9d761431;hb=fbbe2a83ed1d928afe5a634f01c1b653d7288d9c;hp=1fea760102a7a9c0bf26a40835d7b0849a26b1ec;hpb=1b88e230428d6cc4f3ff364fbcfd7f5c1a40fedc;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/lib/Variable/Magic.pm b/lib/Variable/Magic.pm index 1fea760..aa7ee22 100644 --- a/lib/Variable/Magic.pm +++ b/lib/Variable/Magic.pm @@ -13,13 +13,13 @@ Variable::Magic - Associate user-defined magic to variables from Perl. =head1 VERSION -Version 0.27 +Version 0.28 =cut our $VERSION; BEGIN { - $VERSION = '0.27'; + $VERSION = '0.28'; } =head1 SYNOPSIS @@ -325,21 +325,21 @@ Other arguments are specific to the magic hooked : =over 8 -=item - +=item * C When the variable is an array, C<$_[2]> contains the normal length. The callback is also expected to return the new scalar or array length. -=item - +=item * C C<$_[2]> is a either a copy or an alias of the current key, which means that it is useless to try to change or cast magic on it. C<$_[3]> is an alias to the current element (i.e. the value). -=item - +=item * C, C, C and C @@ -462,8 +462,6 @@ The only way to address this would be to return a reference. If you define a wizard with a C callback and cast it on itself, this destructor won't be called because the wizard will be destroyed first. -Using simultaneously C and C magics on hashes may cause segfaults. - =head1 DEPENDENCIES L 5.7.3.