- 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
}
- or download this
push @draw, ($key) x $hash{$key};
- or download this
foreach my $key ( keys %hash )
{
...
push @mega, ($key) x $hash{$key}
if exists $bonus{$key};
}
- or download this
my $number;
do {
$number = draw_regular();
} while ( grep { $_ == $number } @picked );
push @picked, $number;
- or download this
my $number;
do {
...
} while ( exists $seen{$number} );
$seen{$number}++;
push @picked, $number;