Do you know where your variables are? | |
PerlMonks |
Re: Help with passing through a package...by wog (Curate) |
on Jan 31, 2002 at 22:21 UTC ( [id://142529]=note: print w/replies, xml ) | Need Help?? |
Variables declared with my are local to the block or file which they are declared within. To make a variable accessible from the outside, you can declare with use vars, our (5.6+ only), or just use its full name instead of declaring it (e.g. $X2PCONF::...). (Of course, you don't even need to declare it or use its full name if you don't use strict, but please don't do that.)
In Section
Seekers of Perl Wisdom
|
|