my %remove = map { $_ => 1 } @badWords; my @goodWords = grep(!defined $remove{$_}, @myArray);
In reply to Re: Easy one: removing elements of one array from another...
by snowcrash
in thread Easy one: removing elements of one array from another...
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |