Basically: The more you need to refactor, the riskier.
Some thoughts:
If you use file scoped my lexicals instead, you won't have to change the code using those vars.
you could use a tie interface to implement those methods (in FETCH and STORE) with my vars, while sticking with the old syntax.
Those methods will come with a speed penalty, but you can also use it to monitor where your vars are actually used and gradually replace them with real lexicals.
I'm not sure if that's still state of the art, I'd rather look for fastcgi or similar first.
Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Best Practice for Replacing Globals
by LanX
in thread Best Practice for Replacing Globals
by beaker121
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |