in reply to Re: Re: Re: Re: Scope Between global and my
in thread Scope Between global and my
You don't have to turn off strict if you either
a) package-qualify the variable name, as in my previous example; or
b) declare the variable using our or use vars.
our is supposed to be a more modern replacement for use vars, but they don't do exactly the same thing, so which one is most appropriate really depends on your specific circumstances.
jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: Scope Between global and my
by SkipHuffman (Monk) on Apr 01, 2004 at 18:40 UTC | |
by jdporter (Paladin) on Apr 02, 2004 at 16:11 UTC | |
by SkipHuffman (Monk) on Apr 02, 2004 at 19:42 UTC |