in reply to Re: comparing arrays
in thread comparing arrays

And as usual, if you are fine with the first match (and you are in this case) and think of efficiency (and you do, as the comparison of lengths shows us), then why do you use grep and not a looping construct?
Does it have any advantages?