- or download this
sub LoadNewValues
{
@MyValues{qw(1 2 3)}=("hallo", "ok", "fine");
}
- or download this
my $button1 = $mw->Button(-text => 'Update Values', -command => sub{
+LoadNewValues(\%MyValues)})->pack();
...
$href->{2} = "ok";
$href->{3} = "fine";
}