See perlfaq4 about How do I compute the difference of two arrays.
In reply to Re: Search and Remove by Corion in thread Search and Remove by PyrexKidd