Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: "goto" memory leak

by Anonymous Monk
on Mar 30, 2016 at 19:26 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1159163]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-03-29 02:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found