No such thing as a small change | |
PerlMonks |
Re^2: Is 'use vars' really obsolete?by AnomalousMonk (Archbishop) |
on Sep 19, 2017 at 02:22 UTC ( [id://1199641]=note: print w/replies, xml ) | Need Help?? |
I can't see a case for use vars which can't be solved with our. And indeed, solved better, because our operates within a well-defined lexical scope rather than the (can we say global?) scope of a package namespace. I, too, would be curious to see an example of use vars that jnorden would assert would do something that lexical our and my could not do better (WRT variable names, that is). Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|