Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: how internally $#array is working in Perlby JavaFan (Canon) |
on Aug 13, 2010 at 08:23 UTC ( [id://854854]=note: print w/replies, xml ) | Need Help?? |
Please explain me about how $#array is internally working.Not much magic going on. Internally, an array is represented by an AV structure (a C struct). The first field points to an xpvav structure (another C struct). Here, the second field, called FILL, is an integer holding the current size of the array. The size of the array, plus the value of $[ is enough to calculate the size of $#array.
In Section
Seekers of Perl Wisdom
|
|