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

Re: Can I from within a module access variables from the calling program?

by choroba (Canon)
on Oct 25, 2012 at 11:52 UTC ( #1000834=note: print w/ replies, xml ) Need Help??


in reply to Can I from within a module access variables from the calling program?

You cannot access my variable from a different package. Declare it with our.

لսႽć ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ


Comment on Re: Can I from within a module access variables from the calling program?
Replies are listed 'Best First'.
Re^2: Can I from within a module access variables from the calling program?
by HJO (Acolyte) on Oct 25, 2012 at 12:11 UTC

    I tried to use our, but it didn't work either

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2015-09-04 12:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (135 votes), past polls