Help for this page

Select Code to Download


  1. or download this
    while (<FILE>) { # line at a time
      my( $game,$month,$day,$year,$one,$two,$three,$four,$five,$bonus) = s
    +plit;
    ...
      }
      $bonus{$bonus}++; # bonus
    }
    
  2. or download this
      push @draw, ($key) x $hash{$key};
    
  3. or download this
    foreach my $key ( keys %hash )
    {
    ...
        push @mega, ($key) x $hash{$key}
            if exists $bonus{$key};
    }
    
  4. or download this
        my $number;
        do {
            $number = draw_regular();
        } while ( grep { $_ == $number } @picked );
        push @picked, $number;
    
  5. or download this
        my $number;
        do {
    ...
        } while ( exists $seen{$number} );
        $seen{$number}++;
        push @picked, $number;