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;
In reply to Re^2: array filter
by ikegami
in thread array filter
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |