Help for this page

Select Code to Download


  1. or download this
     $bot->$method(\&GetInput, \&ShowOutput);
     # In your main program, you have to define sub GetInput{...}, 
    ...
     # Alternatively, use anonymous subs :
     $bot->$method(sub{print $_[0]; return scalar <>},
                   sub{print $_[0] . "\n"});
    
  2. or download this
    sub method{
      my ($self, $getInput,$SendOutput) = @_;
    ...
      $SendOutput->($output);
    
    }