Actually, the code I posted is already sending the label to the replace subroutine (that's why it's sub { replace($_) } and not \&replace).
Just start out your replace sub like this:
sub replace { my $label = shift; ... }
bbfu
Black flowers blossom
Fearless on my breath
In reply to Re3: Tk Menu question.
by bbfu
in thread Tk Menu question.
by perl_seeker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |