if ($thestring =~ /$thecheck/) { print "$thecheck is in $thestring"; }