Do you know where your variables are? | |
PerlMonks |
Re^3: "goto" memory leakby Anonymous Monk |
on Mar 30, 2016 at 19:26 UTC ( [id://1159163]=note: print w/replies, xml ) | Need Help?? |
That snippet exhibits an infinite loop, or two. The goto is always taken since $i++ < 100_000 will always be true... Objects may have side effects when they are DESTROYed, so this must happen at some well-defined moment (scope exit). Gotos cannot create scopes as there is no way to determine the flow of the program.
In Section
Seekers of Perl Wisdom
|
|