in reply to Re: array filter
in thread array filter

Or did you mean

@mainarray contains "In", "to", "the", wild"

Use grep to filter out array elements.

my %filters = map { lc($_) => 1 } @filters; my @words = grep !$filters{lc($_)}, @words;