Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^4: Tk questionby PhilHibbs (Hermit) |
on Sep 10, 2003 at 10:35 UTC ( [id://290360]=note: print w/replies, xml ) | Need Help?? |
'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?
In Section
Seekers of Perl Wisdom
|
|