Looks cool, but won't your solution require grep to loop through @new2 twice (once for each grep)?
Performance wise, isn't a single foreach loop, with two conditionals better?
In reply to Re^2: check whether a array element is equal to a string.
by raybies
in thread check whether a array element is equal to a string.
by ritchie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |