The stupid question is the question not asked | |
PerlMonks |
Re: Array of TK::Checkbuttons not acting appropriatelyby Koosemose (Pilgrim) |
on Oct 02, 2006 at 02:35 UTC ( [id://575831]=note: print w/replies, xml ) | Need Help?? |
Yeah, as rcseege demonstrated in their example, there really isn't a need for a variable to hold the checkbox widgets, so all you really need is $bill_table->Checkbutton(-variable=>\$checkboxvalue[$t])->pack;I'm assuming that somewhere in your code you increment $t, since this appears to be just a snippet, or hopefully just a badly put together example. Ideally you'd want to create and pack your checkbuttons seperate from the rest of the code. Something along the lines of the following:
Update: What you really need to do, to help us help you is trim it down to just what's causing the error, but with enough code that we can actually run the script, it's alot easier to debug something when we have a working program, with the smallest amount of code that still generates the same error you get. and as rcseege said, you may just find out what's wrong yourself when trying to trim it down to a functional test case.
Just Another Perl Alchemist
In Section
Seekers of Perl Wisdom
|
|