Next Program Repair Shop 148

Repeated Data Structure

        if ($round > 0) {
            for my $rn (1..5) {
              $rounds->{"round$rn"} = 
                { player   => $page->param("round${rn}_x"),
                  computer => $page->param("round${rn}_o"),
                }
            }
        }
            for my $rn (1..5) {
              $rounds->{"round$rn"} = 
                { player   => $page->param("round${rn}_x"),
                  computer => $page->param("round${rn}_o"),
                }
            }


Next Copyright © 2002 M. J. Dominus