This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
dump.c: don't display an ARRAY's ARYLEN field
authorDavid Mitchell <davem@iabyn.com>
Thu, 10 Nov 2016 13:52:23 +0000 (13:52 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sat, 12 Nov 2016 16:15:08 +0000 (16:15 +0000)
commit3429ffb4f9b0e6212cf116c6f2beff44790c35a8
treefe38c5c6876a6339b2de292c41b68f5089dd89ca
parent603278a3967e74ac43d71246dfc5ccb5272c0bd3
dump.c: don't display an ARRAY's ARYLEN field

Originally xav_arylen was an AV field and was displayed by sv_dump.
In 2005, this ield was removed, and replaced by PERL_MAGIC_arylen_p
magic when needed.

A side effect of this is that sv_dump on a magical AV adds
PERL_MAGIC_arylen_p magic to the av as a side-effect.
Which is undesirable.

This commit just omits displaying 'ARYLEN =' altogether. Any arylen magic
will already be displayed as part of dumping the AV, so it's redundant.
dump.c
ext/Devel-Peek/Peek.pm
ext/Devel-Peek/t/Peek.t