in reply to using && with regex in an if() statement

The snippet
my $sentence = "foo bar"; if ($sentence =~ /foo/gis && $sentence =~ /bar/gis) { print "Got here\n"; }
prints "Got here", so perhaps check your sentence again.

-Mark