![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Matching 2 unordered arrays then printing the first array highlighting the matches?by hdb (Monsignor) |
on Oct 28, 2013 at 19:27 UTC ( #1060047=note: print w/replies, xml ) | Need Help?? |
You create a hash with all elements of array2 as the keys. When iterating through array1, you check whether the elements exists in the hash.
In Section
Seekers of Perl Wisdom
|
|