barrymcv has asked for the wisdom of the Perl Monks concerning the following question:
Thanks in advance$MatchCount = 0; for ($z=0;$z<=$arrLenA;$z++){ for ($i=0;$i<=$arrLenB;$i++){ if ($sentencesA[$z] eq $setencesB{$i}){ $MatchCount++; } } } print $MatchCount;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Comparing 2 arrays too find the total number of identical elements.
by naikonta (Curate) on Apr 22, 2007 at 14:15 UTC | |
|
Re: Comparing 2 arrays too find the total number of identical elements.
by betterworld (Curate) on Apr 22, 2007 at 14:13 UTC | |
|
Re: Comparing 2 arrays too find the total number of identical elements.
by polettix (Vicar) on Apr 22, 2007 at 14:16 UTC | |
by barrymcv (Initiate) on Apr 22, 2007 at 14:40 UTC | |
by polettix (Vicar) on Apr 22, 2007 at 19:33 UTC | |
by johngg (Canon) on Apr 22, 2007 at 22:24 UTC |