in reply to Re^7: Remove similar key=value pair from HOH
in thread Remove similar key=value pair from HOH
my %freq = ();
my @unique = grep { !$freq{$_}++ } @arr;
You may be interested in List::MoreUtils::uniq:
use List::MoreUtils qw(uniq);
my @unique = uniq @arr;
Give a man a fish: <%-(-(-(-<
|
|---|