|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re^2: Update referencesby Eliya (Priest) |
| on May 13, 2012 at 21:00 UTC ( #970333=note: print w/ replies, xml ) | Need Help?? |
|
The reference refers to the scalar retrieved via $a[0], not the array index [0]. The reference knows nothing about the array that scalar came from. And the scalar will exist as long as its refcount is > 0.
(note the refcounts)
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||