Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: "goto" memory leak

by Anonymous Monk
on Mar 30, 2016 at 19:26 UTC ( #1159163=note: print w/replies, xml ) Need Help??


in reply to Re^2: "goto" memory leak
in thread "goto" memory leak

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1159163]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2020-07-06 12:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?