in reply to Re: GREP case insensitivity
in thread GREP case insensitivity

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;