http://www.perlmonks.org?node_id=1015646


in reply to Re^3: Efficient bit counting with a twist.
in thread Efficient bit counting with a twist.

The summing function is discussed in the Doing Sums section of perlpacktut (not perlunpacktut, which does not exist) and in unpack, although it must be admitted that examples of counted-field summation in both these sources are a bit rare.