Help for this page

Select Code to Download


  1. or download this
    $data = init();
    while(still_alive)
    {
    ...
      print $logfile "Input contained $data";
      next if invalid($data);
    }
    
  2. or download this
    STATE: until ($state->name eq 'Ending')
    {
      $state->action();
    ...
      $state = $state->nextState(context);
      next STATE unless $blackList->contains($state); #here we want to go 
    +to the next state without processing the current one
    }