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.
I want the result to be 2 since both "A" and "C" exist in both arrays.@Array1 = ("A", "B", "C", "D"); @Array2 = ("J", "C", "T", "A");
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Count of words that match in an array⭐
by stephen (Priest) on May 10, 2002 at 03:05 UTC | |
Re: Count of words that match in an array⭐
by Russ (Deacon) on May 10, 2002 at 03:23 UTC | |
Re: Count of words that match in an array⭐
by BUU (Prior) on May 10, 2002 at 04:50 UTC | |
Re: Count of words that match in an array
by thelenm (Vicar) on May 10, 2002 at 16:17 UTC | |
Re: Count of words that match in an array
by simmisam (Novice) on Jan 15, 2014 at 07:10 UTC | |
by kcott (Archbishop) on Jan 15, 2014 at 09:29 UTC | |
Re: Count of words that match in an array
by songahji (Friar) on May 09, 2005 at 18:00 UTC | |
Re: Count of words that match in an array
by BUU (Prior) on May 10, 2002 at 22:03 UTC |
Back to
Seekers of Perl Wisdom