in reply to Re: Re: Re: Re: duplicate lines in array
in thread duplicate lines in array

How comes you missed this?
/H\(\d+\)/&&push@{$c{$&}},$_.$/for@r;
You could even save "keys" because no value will be a key:
print map@{$c{$_}},grep$#{$c{$_}}>0,%c;