Help for this page
my %count; for (@items) { $count{$_}++ } my @dups = grep { $count{$_} > 1 } @items;
my (%count, @dups); for (@items) { $count{$_}++ == 1 && push(@dups, $_) }