P is for Practical | |
PerlMonks |
Re: a general question on references...by TheoPetersen (Priest) |
on Jul 18, 2001 at 23:41 UTC ( [id://97855]=note: print w/replies, xml ) | Need Help?? |
A lexical variable dies when its reference count goes to zero. Since you return a reference to %hash, it lives on :)
In Section
Seekers of Perl Wisdom
|
|