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.