Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Global symbol requires explicit package name

by choroba (Cardinal)
on Nov 28, 2012 at 14:53 UTC ( [id://1006042]=note: print w/replies, xml ) Need Help??


in reply to Global symbol requires explicit package name

You are confusing lexical and dynamic scope. See What's the difference between dynamic and lexical (static) scoping? Between local() and my()?

A subroutine should obtain the data through arguments, not variables.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re: Global symbol requires explicit package name

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2025-04-25 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.