in reply to partial matching of lines in perl
This is a FAQ. See perlfaq4 on How do I compute the difference of two arrays?