in reply to Easy one: removing elements of one array from another...
my %remove = map { $_ => 1 } @badWords; my @goodWords = grep(!defined $remove{$_}, @myArray);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Easy one: removing elements of one array from another...
by Abigail (Deacon) on Jun 28, 2001 at 20:26 UTC | |
by indapa (Monk) on Jun 28, 2001 at 20:33 UTC |