http://qs321.pair.com?node_id=290360


in reply to Re: Re: Re: Tk question
in thread Tk question

'my' declares a variable within the 'current scope' - if that's in a sub (or any pair of braces),it's gone when you exit the sub. If, on the other hand, it's in the 'main body' of your code, it's global. That is generally a Bad Thing.
That makes it sound like using "my" at global scope is a Bad Thing. Shurely not?