in reply to GREP case insensitivity

my @bintext2 = grep { /$input/i } @bintext;

see perlre