in reply to Confusion in naming variables in subroutines

I agree with most of the commentary I've seen thus far. However, if it concerns you, you might adopt the practice of having something different between global and local symbols, such as capitalizing the globals. This way, you won't be as easily confused when you're maintaining code in the future. For example, omitting 'my' on one of your variable declarations, and then having odd changes in your global variables...

--roboticus

  • Comment on Re: Confusion in naming variables in subroutines