Use an array:
use warnings; use strict; use Tk; my $main = MainWindow->new (-title => "ButtonDemo"); my @buttons; push @buttons, $main->Button (-text => "Button $_") for 1..10; $_->pack () for @buttons; MainLoop ();
In reply to Re: Creating variables for each array member
by GrandFather
in thread Creating variables for each array member
by sashac88
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |