print "String 'monkey' was "; <>=~/(?(?:monkey)(?!)|(?{print "not "}))/ print "found in the input string\n";