Perl: the Markov chain saw | |
PerlMonks |
Re: Seeking the right way to override global variablesby LanX (Saint) |
on Sep 26, 2014 at 14:00 UTC ( [id://1102136]=note: print w/replies, xml ) | Need Help?? |
Already the first question is almost tl;dr plz consider different posts next time. You should use local only within the target scope, but your applying it before use, which is problematic. Module code outside subs is executed, that's why the effect of local is negated again.
Cheers Rolf (addicted to the Perl Programming Language and ☆☆☆☆ :)
In Section
Seekers of Perl Wisdom
|
|