Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: 'require/use' scoping ("scope")

by runrig (Abbot)
on Jan 29, 2008 at 21:43 UTC ( #665015=note: print w/ replies, xml ) Need Help??


in reply to Re^3: 'require/use' scoping ("scope")
in thread 'require/use' scoping

local has nothing to do with the scope of the variable...(snip)...the time it makes any sense is in lexical scoping...it's how it's used in the perl documentation, which doesn't have any other scope to talk about...(snip)...read Dominus's Coping with Scoping.

See perldoc -q "dynamic and lexical"

Also, in Dominus' addendum article Seven Useful Uses of Local there's some stuff on dynamic scoping.

Update: also (on an unrelated note), in your node above, the comment in this line is incorrect (as pointed out by tye in the CB):

require "lib/Foo.pm"; # no @INC searching!


Comment on Re^4: 'require/use' scoping ("scope")
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2014-12-22 10:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (116 votes), past polls