![]() |
|
No such thing as a small change | |
PerlMonks |
Re5 (-l): I don't use printf enoughby dragonchild (Archbishop) |
on Oct 25, 2003 at 02:42 UTC ( #302019=note: print w/replies, xml ) | Need Help?? |
Going down that road means that eventually somebody is going to argue that every single subroutine should localize all the global variables because of similar reasons.
Personally, I think there should be a switch, similar to strict, that will do this for you within a scope. Most modules shouldn't be depending on the globals anyway. It just causes craziness. Is there a use localize_globals; or some such? Ideally, one would add a use line at the top of the module and that would be it. Could this work? (Untested)
------
The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6 ... strings and arrays will suffice. As they are easily available as native data types in any sane language, ... - blokhead, speaking on evolutionary algorithms Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In Section
Meditations
|
|