X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FVariable%2FMagic.pm;h=448ea299075aacc48af2ca663c0b4339a3eb3710;hb=59da6da76365ee7691118cfe945eeef084ee4bb7;hp=bad596178e799583e7e2b473cd3e4ca426cd4cc3;hpb=6c5abbf8d209a585843831e5b47ce8ef19c44440;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/lib/Variable/Magic.pm b/lib/Variable/Magic.pm index bad5961..448ea29 100644 --- a/lib/Variable/Magic.pm +++ b/lib/Variable/Magic.pm @@ -324,6 +324,9 @@ In the special case of C magic and when the variable is an array, C<$_[2]> C<$_[2]> is the current key in C, C, C, C and C callbacks, although for C it may just be a copy of the actual key so it's useless to (for example) cast magic on it. C magic also receives the current element (i.e. the value) in C<$_[3]>. +All the callbacks are expected to return an integer, which is passed straight to the perl magic API. +However, only the return value of the C callback currently holds a meaning. + =back # A simple scalar tracer