thank you so much. I was a bit confused at the beginning: I thought that you had to specify a starting value for $hoh{$c1}{$c2}{count}. By the way, and I know I'm going a bit astray of the initial question, but what if I wanted to start that count at 5? Would specifying
$hoh{$c1}{count}=5;
work if I specified it before incrementing in your while loop? Thanks!
In reply to Re^2: Count number of elements in HoH and sum them for other keys
by Sosi
in thread Count number of elements in HoH and sum them for other keys
by Sosi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |