in reply to Re: Array Comparison
in thread Array Comparison
Grep returns the original value for every element for which the expression returns true. Your ternary operator would be useful in map, but not here.my @cleaned = grep { not exists $exclude{$_} } @words;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Array Comparison
by mcogan1966 (Monk) on Dec 22, 2003 at 18:54 UTC | |
by Roger (Parson) on Dec 22, 2003 at 23:12 UTC |