There is a good chance that you would want to escape $input so that special regex characters match exactly, rather than taking on their special meaning.
my @bintext2 = grep { /\Q$input\E/i } @bintext;
This way things like "*", "+", and "-" match literally.
Good Day,
Dean
In reply to Re: GREP case insensitivity
by duelafn
in thread GREP case insensitivity
by italiansauce88
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |