Do you know where your variables are? | |
PerlMonks |
Re: Re: Tk/Perl Commandby aquarium (Curate) |
on Mar 21, 2003 at 02:12 UTC ( [id://244786]=note: print w/replies, xml ) | Need Help?? |
I agree with "pg", pass the references of your widgets to subroutines...in fact, that's how tk programs become more modular, so you're not playing around with global vars everywhere. You only need to pass the reference of a widget and a subroutine has access (via configure) to all of its' properties and methods.
Chris
In Section
Seekers of Perl Wisdom
|
|