http://www.perlmonks.org?node_id=229164


in reply to Re: string does not contain
in thread string does not contain

Close.   Actually, $string !~ /hello/
  or ! ( $string =~ /hello/ )

  p