Next Program Repair Shop 147

Repeated Data Structure

    98     $rounds = {
    99                 round1 => {
   100                            player => '?',
   101                            computer => '?'
   102                           },
   103                 round2 => {
   104                            player => '?',
   105                            computer => '?'
   106                           },
           ...
        for my $rn (1..5) {
          $rounds->{"round$rn"} = 
            { player   => '?',
              computer => '?',
            }
        }


Next Copyright © 2002 M. J. Dominus