You only need curlies if you are using grep with a code snippet
The reason your example needs curlies is because the and operator has lower precedence than the comma operator. If you use the && operator then a comma works.
my @bintext2 = grep /$input/i && length > 20, @bintext;
In reply to Re^2: GREP case insensitivity
by jwkrahn
in thread GREP case insensitivity
by italiansauce88
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |