X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FVariable%2FMagic.pm;h=79ca7e9cc7164d945e6a55a24b553db243b9d5e0;hb=5b519e2dbddefbc9195f6a7cc49db883d08fa8d8;hp=aa7ee22136d71a0c31849f6a0dafed9f9d761431;hpb=9d0bcf2f36e7f53655e4860a66785879cf1c0cbd;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/lib/Variable/Magic.pm b/lib/Variable/Magic.pm index aa7ee22..79ca7e9 100644 --- a/lib/Variable/Magic.pm +++ b/lib/Variable/Magic.pm @@ -1,6 +1,6 @@ package Variable::Magic; -use 5.007003; +use 5.008; use strict; use warnings; @@ -13,13 +13,13 @@ Variable::Magic - Associate user-defined magic to variables from Perl. =head1 VERSION -Version 0.28 +Version 0.29 =cut our $VERSION; BEGIN { - $VERSION = '0.28'; + $VERSION = '0.29'; } =head1 SYNOPSIS @@ -329,8 +329,8 @@ Other arguments are specific to the magic hooked : 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. +When the variable is an array or a scalar, C<$_[2]> contains the non-magical length. +The callback can return the new scalar or array length to use, or C to default to the normal length. =item * @@ -464,7 +464,7 @@ If you define a wizard with a C callback and cast it on itself, this destr =head1 DEPENDENCIES -L 5.7.3. +L 5.8. L (standard since perl 5), L (standard since perl 5.006).