X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FVariable%2FMagic.pm;h=fe96a192115b494725f779beb15230815adf41df;hb=6a204757f3b9c5d10bc57e21cbb65c0e29688066;hp=0d6f13281158a77d39dcd0bb3e6a56aa91522191;hpb=fa610aaeffe7ea7bcfdcac659811a64dc0fde6af;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/lib/Variable/Magic.pm b/lib/Variable/Magic.pm index 0d6f132..fe96a19 100644 --- a/lib/Variable/Magic.pm +++ b/lib/Variable/Magic.pm @@ -452,6 +452,11 @@ When this constant is true, you can use the C callbac =head2 C True for perls that don't call 'len' magic when you push an element in a magical array. +Starting from perl 5.11.0, this only refers to pushes in non-void context and hence is false. + +=head2 C + +True for perls that don't call 'len' magic when you push in void context an element in a magical array. =head2 C @@ -539,6 +544,8 @@ I : 'len' magic is no longer invoked when calling C with a magic I : 'len' magic is no longer called when pushing / unshifting an element into a magical array in void context. The C part was already covered by I. +I : 'len' magic is called again when pushing into a magical array in non-void context. + =back =head1 EXPORT @@ -557,7 +564,10 @@ our %EXPORT_TAGS = ( 'funcs' => [ qw/wizard gensig getsig cast getdata dispell/ ], 'consts' => [ qw/SIG_MIN SIG_MAX SIG_NBR MGf_COPY MGf_DUP MGf_LOCAL VMG_UVAR/, - qw/VMG_COMPAT_ARRAY_PUSH_NOLEN VMG_COMPAT_ARRAY_UNSHIFT_NOLEN_VOID VMG_COMPAT_ARRAY_UNDEF_CLEAR VMG_COMPAT_SCALAR_LENGTH_NOLEN/, + qw/VMG_COMPAT_ARRAY_PUSH_NOLEN VMG_COMPAT_ARRAY_PUSH_NOLEN_VOID/, + qw/VMG_COMPAT_ARRAY_UNSHIFT_NOLEN_VOID/, + qw/VMG_COMPAT_ARRAY_UNDEF_CLEAR/, + qw/VMG_COMPAT_SCALAR_LENGTH_NOLEN/, qw/VMG_PERL_PATCHLEVEL/, qw/VMG_THREADSAFE VMG_FORKSAFE/, qw/VMG_OP_INFO_NAME VMG_OP_INFO_OBJECT/