in reply to Re: array filterin 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; [download]