in reply to Comparing Arrays

Well, you're going to need to split the flag input on white space and put each item in the array, as you have it now the string "test page" is in the array.

But why are you making this difficult for yourself? If the tags are roughly static, you could make a command line flag for each "tag" instead...

-Scott