You want the intersection of two arrays. The answer to "How do I compute the intersection of two arrays" in perlfaq4 should help. Good luck :)
In reply to Re: Comparing arrays and returning number of similar elements
by brian_d_foy
in thread Comparing arrays and returning number of similar elements
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |