Just another Perl shrine | |
PerlMonks |
Re: Re: Lexicals in if() scope gotcha!by hossman (Prior) |
on Mar 31, 2004 at 00:46 UTC ( [id://341162]=note: print w/replies, xml ) | Need Help?? |
Careful with your wording, the variable does go out of "scope" at the end of the "if" block, but the object refrenced by that variable refrences does not neccessarily get garbage collected. (As opposed to old ANSI C, where the variable itself was still in scope ... oy, those days sucked.)
In Section
Meditations
|
|