in reply to iterating over two arrays

See perlfaq4:
How do I compute the difference of two arrays? How do I compute the intersection of two arrays?
(use this site until perldoc.com or perldoc:// gets fixed).