We don't bite newbies here... much | |
PerlMonks |
Re: if(my) scopeby ikegami (Patriarch) |
on Apr 16, 2009 at 13:49 UTC ( [id://757983]=note: print w/replies, xml ) | Need Help?? |
if is implemented in terms of and, and neither creates a scope at run-time (i.e. they don't call ENTER+LEAVE). That means they don't affect the life (refcount) of variables. if only affects the visibility of the variable, a compile-time effect. yuck! Update: Just to be clear, I'm talking specifically about the condition expression, not the body of the if.
In Section
Seekers of Perl Wisdom
|
|