in reply to Re^3: Array compare using elements as the pattern match.
in thread Array compare using elements as the pattern match.

Why do you consider that a "more Perl-ish way"? Your grep traverses the entire array every time, whereas my for/last only traverses until it finds a match.
  • Comment on Re^4: Array compare using elements as the pattern match.