in reply to string does not contain

You may also want to look at perldoc perlretut. It explains the two operators (=~ and !~) right in the beginning.