perlfaq4 also has an answer, if the elements of each array are unique. See How do I compute the intersection of two arrays?
In reply to Re: Count of words that match in an array
by thelenm
in thread Count of words that match in an array
by Al Shiferaw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |