Subject: | Devel::Size adds magic in Perl 5.10 |
size and total_size add magic to arrays in Perl 5.10. This messes up the
results.
Tested 0.71 on linux with 5.8.8 (no magic)
Tested 0.70 on Windows with 5.8.8 (no magic)
Tested 0.71 on Windows with 5.10.0 (magic)
Tested 0.71 on Windows with 5.10.1 (magic)
It appears to be related to the magic added by using $#a.
Subject: | test.out |
Message body not shown because it is not plain text.
Subject: | test.pl |
use Devel::Size qw( total_size );
use Devel::Peek qw( Dump );
my @arr;
Dump \@arr;
print total_size(\@arr), "\n";
Dump \@arr;