You could even save "keys" because no value will be a key:/H\(\d+\)/&&push@{$c{$&}},$_.$/for@r;
print map@{$c{$_}},grep$#{$c{$_}}>0,%c;
In reply to Re: Re: Re: Re: Re: duplicate lines in array
by Skeeve
in thread duplicate lines in array
by harry34
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |