Maybe use your database's sum() function?
Or
my $sum = 0; for my $record ( @loop ) { $sum += $record->{val}; }
Hope this helps!
In reply to Re: Adding numbers from a loop
by 1nickt
in thread Adding numbers from a loop
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |