in reply to Re: Count number of elements in HoH and sum them for other keys
in thread Count number of elements in HoH and sum them for other keys

And to multiply, iterate over the keys, via keys function, of each hash reference to find the count; store them; then multiply. See also "perlref" & "perlreftut" PODs.

Replies are listed 'Best First'.
Re^3: Count number of elements in HoH and sum them for other keys
by Sosi (Sexton) on Jun 03, 2014 at 12:51 UTC

    thanks your comments were quite helpful. I read them before seeing the reply of smls below, and was implementing something similar to what he ended up doing. Thanks