Help for this page

Select Code to Download


  1. or download this
    my $total = 0;
    $total += $_ for @score;
    print "$total\n";
    
  2. or download this
    my $total = 0;
    for (my $ctr=0; $ctr<@score; $ctr++) {
    ...
        # maybe use $ctr for some other purpose as well...
    }
    print "$total\n";