No such thing as a small change | |
PerlMonks |
Re^3: Adding numbers from a loopby stevieb (Canon) |
on Aug 07, 2019 at 00:03 UTC ( [id://11104070]=note: print w/replies, xml ) | Need Help?? |
Are you looking to gather aggregates based on whether a total is something? For instance, you appear to be looping over db rows, so if 'total' column is '3', you want to sum those up individually? If so, use a hash:
Example:
Output:
In Section
Seekers of Perl Wisdom
|
|