Help for this page

Select Code to Download


  1. or download this
        my $DoButton = 
            $mode_buttons->Button(
                -text => 'Continue',
                -command => sub {&do_setup()}
                )->pack (-side => 'left', -expand => 1);
    
  2. 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);
    
  3. or download this
         ... -command => sub {&getTool();&CleanUp();},
    
  4. or download this
         ... -command => sub {getTool();CleanUp();},   ### drop the "&"
    
  5. or download this
        ... -command => [ \&func_name, $arg1, $arg2 ],