in reply to Re: Detecting duplicate entriesin thread Detecting duplicate entries
Or use:
$seen{$_}++ or push @uniq, $_ for @orig; # or @uniq = grep !$seen{$_}++, @orig; [download]