in reply to Matching a scalar variable

perldoc -f index
if ( -1 != index lc $msg, lc $lidstring[$count] ){ print "$msg found\n"; }