in reply to Difference of two list files.
This is a FAQ. See perlfaq4 about How do I compute the difference of two arrays?
Also see List::Compare.