try:
foreach my $item (@filter) { $file_menu->command(-label => $item, -command => sub {$fname = $i +tem; &Restart});
it's a closure thing
In reply to Re: Perl/Tk menu and commands based on array
by tybalt89
in thread Perl/Tk menu and commands based on array
by richie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |