prints "Got here", so perhaps check your sentence again.my $sentence = "foo bar"; if ($sentence =~ /foo/gis && $sentence =~ /bar/gis) { print "Got here\n"; }
-Mark
In reply to Re: using && with regex in an if() statement
by kvale
in thread using && with regex in an if() statement
by Tachoknight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |