in reply to Re: Re: duplicate lines in array
in thread duplicate lines in array
to justfor (@rec) { /(H\(\d+\))/ && do { push @{$count{$1}}, $_ } } for (keys %count) { if ($#{$count{$_}}) { print "$_\n" for @{$count{$_}} } }
Anyone volunteering to explain my code?/(H\(\d+\))/ && push(@{$count{$1}},$_."\n") for (@rec); print map @{$count{$_}},grep $#{$count{$_}},keys %count;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: duplicate lines in array
by Roger (Parson) on Jan 23, 2004 at 14:43 UTC | |
|
Re: Re: Re: Re: duplicate lines in array
by Fletch (Bishop) on Jan 23, 2004 at 15:01 UTC | |
by Skeeve (Parson) on Jan 23, 2004 at 15:15 UTC |