|
|
| There's more than one way to do things | |
| PerlMonks |
Re: a general question on references...by TheoPetersen (Priest) |
| on Jul 18, 2001 at 23:41 UTC ( #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
|
|
||||||||||||||||||||