In one pass?? :^)
my %count; my @deduped = grep { $count{$_} == 1 } map { $count{$_} ++; $_ } @data +;
In reply to Re: removing duplicated elements from array, with a difference
by BrowserUk
in thread removing duplicated elements from array, with a difference
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |