|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
How can you check if a word in a array occur in another array?by PerlVader (Initiate) |
| on Nov 29, 2012 at 08:02 UTC ( #1006184=perlquestion: print w/ replies, xml ) | Need Help?? |
|
PerlVader has asked for the
wisdom of the Perl Monks concerning the following question:
Hi, I have 2 short arrays with only words in them. I want to check if a word in the first array occurs in the second array, but I am having some problems.
I tried 2 different ways of looping through it but without success. Any advice? Here is the 2 text files: short.txt- the cat ran up the tree the cat the dog then barked at the cat the cat jumped out of the treewoordelysEng.txt- the cat dog It does not print anything to the output file.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||