http://qs321.pair.com?node_id=165582

Al Shiferaw has asked for the wisdom of the Perl Monks concerning the following question: (arrays)

Given two arrays, I like to know how many of the values in array A match with the values in Array B.

E.G.

@Array1 = ("A", "B", "C", "D"); @Array2 = ("J", "C", "T", "A");
I want the result to be 2 since both "A" and "C" exist in both arrays.

Originally posted as a Categorized Question.