sub score_count { my @arr = shift; my $total = 0; foreach my $score (@arr) { print "@$score "; foreach my $i (@$score){ $total += $i; } } print "$total\n"; return $total; }
In reply to Re: 2d Array - making an array for the column then adding the values
by desemondo
in thread 2d Array - making an array for the column then adding the values
by hansoffate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |