Help for this page
Select Code to Download
Select
or
download this
my %seen; $seen{$_}=1 for @list1; my @intersection = grep ++$seen{}==2, @list2;