in reply to Matching 2 unordered arrays then printing the first array highlighting the matches?
Consider using the Module List::Compare to obtain the two lists' intersection, then place that intersection into a hash. When you iterate through the first array, check whether there's a key for each element of that array. If there's a key, it's a common element, so 'highlight' it, else leave it 'unhighlighted.'
Hope this helps!
In Section
Seekers of Perl Wisdom