in reply to Re^4: Confusion over scope of "my" vars
in thread Confusion over scope of "my" vars
The reference counter is not neccessarily 0 at the end of the scope
It's never zero at end of scope. At the very least, the pad references the scalar. If the refcount is one at scope exit, the variable is cleared*. If the refcount is greater than one at scope exit, a new SV is created and associated with the variable.
* — Clearing is similar to undefining, but the string buffer isn't cleared.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Confusion over scope of "my" vars
by LanX (Saint) on Nov 26, 2008 at 21:14 UTC | |
by ikegami (Patriarch) on Nov 27, 2008 at 02:13 UTC | |
by LanX (Saint) on Nov 27, 2008 at 09:35 UTC | |
by ikegami (Patriarch) on Nov 27, 2008 at 19:23 UTC |