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