Just another Perl shrine | |
PerlMonks |
•Re: sub and anonymous subby merlyn (Sage) |
on Jun 20, 2002 at 20:35 UTC ( [id://176148]=note: print w/replies, xml ) | Need Help?? |
I'll give you a scarier one:
Yes, the localization for the variable doesn't happen until the end of the statement, so the value on the right is the previous value (plus one), and it's undone at the end of the block. -- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|