|We don't bite newbies here... much|
Re: Best Practice for replace subby Anonymous Monk
|on Mar 01, 2013 at 16:05 UTC||Need Help??|
I'd put the encoding-work in a subroutine and give no further thought to initializing and tearing-down the variable. Unless you are truly doing this millions of times such that you can clearly demonstrate that there's a problem to be solved here, you have no problem. The code should be clear and well tested and easily changed, with low chances of compromising some other part of the system by doing so. This to me is an argument against "globals."