in reply to Help with passing through a package...
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.)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Help with passing through a package...
by basicdez (Pilgrim) on Jan 31, 2002 at 22:38 UTC | |
by wog (Curate) on Jan 31, 2002 at 22:45 UTC | |
by basicdez (Pilgrim) on Jan 31, 2002 at 23:05 UTC | |
by wog (Curate) on Jan 31, 2002 at 23:15 UTC |
In Section
Seekers of Perl Wisdom