SAN FRANCISCO -- Carlos Gomez homered, Wily Peralta outdueled Matt Cain to end a three-start winless stretch and the Milwaukee Brewers beat the San Francisco Giants 3-1 on Tuesday night.
Gomez hit his 18th homer in the second as the Brewers jumped on Cain (7-7) early. Jonathan Lucroy added a ninth-inning sacrifice fly.
Peralta (8-11) struck out six of nine batters during an early sequence and finished with six K's in 6 1/3 innings for his first career victory against the Giants.
Cain was handed his first loss since the All-Star break. The right-hander had been 2-0 with a 1.80 ERA in the second half and pitched well enough to win this one.
Brandon Crawford doubled to start the eighth, but the Giants failed to bring him home for what would have been the tying run.
Copyright 2014 Associated Press. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.