|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re^5: Tk questionby benn (Priest) |
| on Sep 10, 2003 at 11:04 UTC ( #290372=note: print w/ replies, xml ) | Need Help?? |
|
Yes, I think globals are a Bad Thing generally - not So Bad that I don't use them {g}, but it'll only ever be a couple ($dbh and $cgi, generally). I try to only use globals if it makes things more stylish, or efficient, or pretty. In a case like this, where it looks he's trying to make *every widget* global, that's almost definitely a Bad Thing, and is probably contributing to some 'code spaghetti'. Cheers, Ben.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||