print 'Found it' if $s =~ /$thing/; print 'Found it' if 1+index( $s, $thing );