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;
In reply to Re: Re: Array Comparison
by Roy Johnson
in thread Array Comparison
by mcogan1966
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |