http://qs1969.pair.com?node_id=563289


in reply to Comparing strings

Try this
use List::Compare; @a = qw/AA12 BB13 CC14 DD15/; @b = qw/AA1 AA2 AA12 BB13/; $element = List::Compare->new(\@a, \@b); #@UF = $element->get_unique; @CB = $element->get_intersection; print join "\n", @CB;