useList::Compare;#需要安装@Llist=qw(abel abel baker camera delta edward fargo golfer);@Rlist=qw(baker camera delta delta edward fargo golfer hilton);$lc=List::Compare->new(\@Llist,\@Rlist);#使用数组的reference@intersection=$lc->get_intersection;#子集@union=$lc->get_union;#并集print"@intersection\n@union\n";