Help for this page

Select Code to Download


  1. or download this
    my %G01totals = (
        '01' => 0, '02' => 0, '03' => 0, '04' => 0, '05' => 0, '06' => 0, 
    +'07' => 0,
    ...
        '08' => 0, '09' => 0, '10' => 0, '11' => 0, '12' => 0, '13' => 0, 
    +'14' => 0,
        '15' => 0, '16' => 0, '17' => 0, '18' => 0, '19' => 0, '20' => 0, 
    +'21' => 0,
    );
    
  2. or download this
    while (my $line = <$file>) {
           chomp ($line);
    ...
               $G03totals{$in_one}   += 1;
           }
    }
    
  3. or download this
    while (my $line = <$file>) {
           chomp ($line);
    ...
           $totals{$in_game}{$two}   += 2;
           $totals{$in_game}{$one}   += 1;
    }
    
  4. or download this
    %totals = %G01totals;
    create_tables ($print_heading, $game_index, %totals);
    
  5. or download this
    for (my $i=1;$i<3;$i++) {
       $print_heading = 1;
       $game_index = $i;
       create_tables ($print_heading, $game_index, %totals);
    }
    
  6. or download this
    sub create_tables {
        my ($heading_flag, $game_no, %totals) = @_;
    ...
           calculate_overall_results();
           close ( $out_file );
       }
    
  7. or download this
    sub create_tables {
        my ($heading_flag, $game_no, %totals) = @_;
    ...
           calculate_overall_results();
           close ( $out_file );
       }