in reply to Re: Matching 2 unordered arrays then printing the first array highlighting the matches?
in thread Matching 2 unordered arrays then printing the first array highlighting the matches?
Or just use Perl's 'smart' operator (no hash needed):
print $_ ~~ @array2 ? "$_: Match!\n" : "$_: No Match\n" for @array1;
|
|---|