- or download this
my $DoButton =
$mode_buttons->Button(
-text => 'Continue',
-command => sub {&do_setup()}
)->pack (-side => 'left', -expand => 1);
- or download this
my $DoButton =
$mode_buttons->Button(
-text => 'Continue',
-command => \&do_setup ### provide a code_ref, not anon_
+sub
)->pack (-side => 'left', -expand => 1);
- or download this
... -command => sub {&getTool();&CleanUp();},
- or download this
... -command => sub {getTool();CleanUp();}, ### drop the "&"
- or download this
... -command => [ \&func_name, $arg1, $arg2 ],