http://www.perlmonks.org?node_id=170399


in reply to Comparing two arrays (was: any smart ideas??:)

Check this node out, does what you want...

Updated Link
How can I find the union/difference/intersection of two arrays?

Thanks to jeffa.