while (){ print "matched\n" if /publish/ and /date/; }