in reply to Re^4: matching values in arrays
in thread matching values in arrays

Something that would be better would be to use a hash of a single scalar and append the text ("array1 ", "array2 ", ...) to it (instead of using an anonymous array).

It will use less memory and it should be faster.