X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FVariable%2FMagic.pm;h=2700f7112ef08381f73ba5bbe9a785d141cc8258;hb=9cad66dcbed4359e8d70b1bc1a26000b475a400c;hp=aa7ee22136d71a0c31849f6a0dafed9f9d761431;hpb=f1bba3296198360ce5a220711d7b4689551a1d96;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/lib/Variable/Magic.pm b/lib/Variable/Magic.pm index aa7ee22..2700f71 100644 --- a/lib/Variable/Magic.pm +++ b/lib/Variable/Magic.pm @@ -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 *