Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: cross scope gotos?

by Hue-Bond (Priest)
on Apr 06, 2010 at 11:28 UTC ( #833018=note: print w/ replies, xml ) Need Help??


in reply to cross scope gotos?

what exactly is dynamic scope?

From perlsub:

A "local" modifies its listed variables to be "local" to the enclosing + block, "eval", or "do FILE"--and to any subroutine called from within that block. A "loc +al" just gives temporary values to global (meaning package) variables. It does not cr +eate a local variable. This is known as dynamic scoping.

I think this explains the visibility of the labels too.

--
 David Serrano
 (Please treat my english text just like Perl code, i.e. feel free to notify me of any syntax, grammar, style and/or spelling error. Thank you!).


Comment on Re: cross scope gotos?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2015-07-05 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls