in reply to string does not contain

Just use the negated version of the regex match operator !~ e.g
my $string = "foo bar baz"; print "no hello" if $string !~ /hello/; __output__ no hello
See. perlop for more info.
HTH

_________
broquaint