in reply to removing duplicated elements from array, with a difference
In one pass?? :^)
my %count; my @deduped = grep { $count{$_} == 1 } map { $count{$_} ++; $_ } @data +;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: removing duplicated elements from array, with a difference
by thelenm (Vicar) on Aug 28, 2002 at 18:37 UTC | |
by Anonymous Monk on Aug 28, 2002 at 18:41 UTC | |
by BrowserUk (Patriarch) on Aug 28, 2002 at 18:53 UTC |