in reply to Re: Re: Perl Idioms Explained - keys %{{map{$_=>1}@list}}in thread Perl Idioms Explained - keys %{{map{$_=>1}@list}}
$seen{$_}++ for @list; my @doubles = grep $seen{$_} == 2, @list; [download]
Makeshifts last the longest.