Anderson, Pérez lead Brewers past Giants 5-2

MILWAUKEE — Chase Anderson pitched 7 2-3 shutout innings, drove in a run and won his third straight game, Hernán Pérez homered and the Milwaukee Brewers beat the San Francisco Giants 5-2 on Tuesday night.

Anderson (5-1) extended his scoreless streak to 21 2-3 innings with the win. He walked one, struck out four and helped the Brewers beat the Giants for just the third time in the last 17 games against them.

Anderson kept his shutout going by stranding Brandon Crawford at third in the fifth. Anderson escaped the sixth when Brandon Belt grounded out to first with runners at first and second and two outs. The Brewers turned three double plays for Anderson.

Anderson collected his first RBI of the season and the fifth of his career in the third with a double off the wall in left.

The fans let Brewers reliever Carlos Torres hear it after he gave up three straight singles and two runs in the ninth. Buster Posey drove in a run before Torres' throwing error trying to start a double play allowed another run in. Corey Knebel came on with runners at first and second, no outs and retired three straight for his sixth save.

The Brewers roughed up Matt Cain (3-5) with four runs in the second, highlighted by a solo home run from Pérez and Eric Sogard's two-run bloop double into short left field. Domingo Santana capped it with an RBI single.

Cain allowed 10 hits, two walks and struck out three over five innings. It was his fourth straight loss. He hasn't won on the road since his 7-1 win on Aug. 6 at Washington, a span of eight road starts.

The Brewers challenged a safe call at first in the sixth. After a 1:37 review, the call was overturned.