There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Others have given good answers to your question, but neglected to chastise you for your lousy code. So just in case this is homework, I offer these comments.:-)
First off, if you added you would have received a fatal error that there is no Tk::CheckButton module. Fix that error, then you load Tk::LabFrame but never use it. Instead you use Tk::Pane to make a scrolled frame, which has its packing options unset, so the whole checkbutton list is crushed to 1 entry. You even use the .. operator incorrectly, but luckily it seems to work. Your @a array only has 10 elements one to ten, but you make 20 checkbuttons. If you are a student, I wouldn't even accept this as a valid submission. Here is some unflawed code for you to look at.
I'm not really a human, but I play one on earth. Old Perl Programmer Haiku ................... flash japh In reply to Re: Checkbutton in a loop
by zentara
|
|