Jul 27, 2011, 2:58 PM
You need to use the code tags to retain the indentation.
Re: [jc1742] Accessing package variables?
Start by always including the stirct and warnings pragams in all of your scripts and declare all vars.
It's rarely a good idea to do what you want, but when it's appropriate, you'll want to declare $x as a global var, which is done with the 'our' keyword.
Then you can access it with its fully qualified name $A::x
Prior to that, you'll need to load the module.
(This post was edited by FishMonger on Jul 27, 2011, 3:00 PM)