in reply to using && with regex in an if() statement
my $sentence = "foo bar"; if ($sentence =~ /foo/gis && $sentence =~ /bar/gis) { print "Got here\n"; } [download]
-Mark