in reply to Compare two arrays

This is a FAQ: How do I compute the difference of two arrays? How do I compute the intersection of two arrays?. Do please read the FAQs. If you don't understand the answers there or have further questions arising from them not covered in the FAQs then by all means post here for more discussion.

Update: As per Laurent_R's reply and the OP's node above the task appears not to be to compare two arrays but rather to match an array of patterns to an array of strings which is indeed a different problem (even if related). Apologies for my pre-caffiene noise.

Replies are listed 'Best First'.
Re^2: Compare two arrays
by Laurent_R (Canon) on Dec 05, 2014 at 09:28 UTC
    It seems to me that the OP is not really about computing the difference (or intersection) between two arrays, but more about how to do the match when one of the arrays may have a generic "*" character in some of its elements to represent some other characters. So probably more a regex question. I won't go further into that, since the original poster has apparently found a solution.