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


in reply to string does not contain

Hi ,

$string !=~ /hello/ or unless($string =~ /hello/)


or that implies if not or a negate logic shall work for the not parsing a string value

Replies are listed 'Best First'.
Re: Re: string does not contain
by petral (Curate) on Jan 22, 2003 at 23:50 UTC
    Close.   Actually, $string !~ /hello/   or ! ( $string =~ /hello/ )
      p