in reply to Compare arrays remove identical
chapter 4.7 of the Perl cookbook
node How can I find the union/difference/intersection of two arrays? may also be helpful