- or download this
intersection( \%array1, \%wisconsin, \%rockford )
- or download this
push @comp, { map { $_ => 1 } @array1 };
- or download this
use strict;
use List::Compare;
...
my $lc = List::Compare->new( @comp );
my @intersection = $lc->get_intersection;