Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Loop controls transcends scope?

by merlyn (Sage)
on Jan 15, 2009 at 17:43 UTC ( [id://736609]=note: print w/replies, xml ) Need Help??


in reply to Loop controls transcends scope?

It's not violating scope. last/next/redo/goto respect dynamic scope (determined by runtime call stack) not lexical scope. Think of it as similar to the difference between local() and my().

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-26 01:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found