(At this this point it's obvious that %main needs a better name.)my $total; $total += $_->{$member} for values %main;
Makeshifts last the longest.
In reply to Re: Summing values of subkey in a HoH
by Aristotle
in thread Iterating over hash elements (was: Sorry to bother you)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |