We don't bite newbies here... much | |
PerlMonks |
Re: Re: Tk questionby perl_seeker (Scribe) |
on Sep 10, 2003 at 06:01 UTC ( [id://290315]=note: print w/replies, xml ) | Need Help?? |
Hi, thanks for the reply.I am a bit confused.In the first section of code I have a text widget defined like this: Then I have a number of subroutines where $t is used again. These subroutines are bound to buttons which are defined in the frame above with stmts like: In the sub &tged, the get stmt should read characters within the text widget defined initially using $t.If I use "my $t" within this sub and localise it, we wont be referring to the first $t defined outside the sub.Is that right? These subs also use $t again and need to refer to the text widget define initially using: I'm not sure where we should use "my", and where we should not.Turning on use strict gives no message about $t. The sub &tged works on the first button click, and does not work therafter.The other subs are not working at all. Please help. Thanx :)
In Section
Seekers of Perl Wisdom
|
|