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


in reply to Re: variable as hash name
in thread variable as hash name

To count the number of times each element is present. But keep in mind each two consecutive elements of a line will be in a 'group' different than the others.

And I can not know at first how many groups there will be.