Updated

ATLANTA (AP) — Dan Uggla, left off the NL All-Star team, hit a homer and drove in all three Florida runs, Ricky Nolasco pitched seven strong innings and the Marlins beat the Atlanta Braves 3-2 on Sunday.

Florida avoided a sweep in the three-game set as the Braves won each series in a 6-3 homestand. The loss dropped Atlanta's lead in the NL East to two games over the Mets.

Nolasco (8-6) set a season high with 11 strikeouts while allowing six hits and two runs with only one walk.

Leo Nunez pitched a perfect ninth for his 17th save.

Tim Hudson (8-4), one of five Atlanta All-Stars, gave up six hits and three runs in eight innings. Hudson has pitched at least seven innings in six straight starts. He walked one, struck out seven and finished with four straight scoreless innings.

Uggla was left off the NL All-Star roster as Phillies manager Charlie Manuel instead selected Braves utility infielder Omar Infante. Uggla, selected to the 2006 and 2008 All-Star teams, offered a reminder of his credentials when he hit his 16th homer in the fourth to push Florida's lead to 3-1.

Infante, who has started at four positions, struck out as a pinch-hitter to end the game.

Braves All-Star Brian McCann's 10th homer in the sixth cut Florida's lead to 3-2.

Florida's All-Star selections were starting pitcher Josh Johnson and Hanley Ramirez, who will be the first NL shortstop to make three straight starts since Ozzie Smith (1983-92) started 10 straight.

Chris Coghlan and Ramirez singled and scored on Uggla's single with two outs in the first.

The Braves loaded the bases with no outs in the first, but Nolasco gave up only one run on Eric Hinske's sacrifice fly.

The Marlins loaded the bases with one out in the eighth. Hudson struck out Ramirez and ended the inning on Jorge Cantu's grounder to the mound.

Emilio Bonifacio made a running catch near the warning track in center field to take a hit away from All-Star Martin Prado in the seventh.

Brooks Conrad, playing third base as Chipper Jones was given a rest, made diving stops before throwing out Cody Ross in the first and Brett Hayes in the fifth.

Jones remained in the game after he walked as a pinch-hitter in the eighth.

NOTES: Braves 1B Troy Glaus missed his second straight start after having a cortisone shot in his sore left knee. ... LF Matt Diaz made his first start since his return on Tuesday from thumb surgery. ... LHP Billy Wagner is one of five players to be considered in voting for the final NL spot. ... Left-handed hitters are 1 for 20 against LHP Taylor Tankersley, including McCann's out on a fly ball in the eighth. ... Attendance was 44,163.