Help for this page

Select Code to Download


  1. or download this
    switch($number)
    {
    ...
      case 1, 29, 77, 98         { \&othersub(@args); }
      default                    { sleep(1); }
    }
    
  2. or download this
    if(($number == 6) || ($number == 12) || ($number == 13) || ($number ==
    + 37) || ($number == 44) || ($number == 68))
      { \&subroutine(@args) }
    ...
      { \&othersub(@args); }
    else
      { sleep(1); }
    
  3. or download this
    my %actions =
      (
    ...
      if($actions{$text[1]})
        { return(&{$actions{$text[1]}}($self, $line, @text)); }
      }