$a = 'dog'; $b = 'doghouse'; if($a =~ /$b/){print "

found";} else{print "

not found!";}