sub total { my @numbers = @_; my $total = 0; foreach my $value (@numbers) { $total += $numbers[$value]; # Wait, what? } return $total; }
In reply to Re: Having problems with addition in sub
by jbert
in thread Having problems with addition in sub
by bluethundr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |