in reply to string does not contain
TMTOWTDI
negate the if to an unless:
A.A.my $string = "foo bar baz"; print "no hello" unless $string =~ /hello/;
|
---|
In Section
Seekers of Perl Wisdom