my @numbers = (2, 3, 4, 5); my $total=1; $total *= $_ for @numbers; print "$total\n";
Dave
In reply to Re: Multiplying together the numers in an array
by davido
in thread Multiplying together the numers in an array
by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |