if ( index( $string, $testPhrase ) >= 0 ) { print "\$testPhrase is present.\n"; }