Any operation that queries the size does the same thing:
Not so.
>perl -MDevel::Peek -le"my @a = qw(a b c); print @a-1; Dump \@a,1"
2
SV = RV(0x238c60) at 0x238c54
REFCNT = 1
FLAGS = (TEMP,ROK)
RV = 0x182a22c
SV = PVAV(0x239a4c) at 0x182a22c
REFCNT = 2
FLAGS = (PADMY)
ARRAY = 0x182521c
FILL = 2
MAX = 3
ARYLEN = 0x0
FLAGS = (REAL)
If it's a bug, it's not attributable to Devel::Size.
If it's a bug that reading $#a adds magic to @a, then that's not attributable to D::S.
The bug in D::S is that it should be using the method that doesn't add magic.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.