in reply to Difference Between Two array

perldoc perlfaq4

Under "How do I compute the difference of two arrays? How do I compute the intersection of two arrays?"

In general, the Perl documentation or a quick search here will show you how to do almost any basic, common task.