You'll want parens around "0,0" or you will get a surprise from precedence when you try that with non-zero values. A running total is what you're looking for:
for (@Rainfall) ( $Total += $_ ; }
After Compline,
Zaxo
In reply to Re: Adding Arrays..
by Zaxo
in thread Adding Arrays..
by mauvis99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |