Reed Johnson knows that when given the chance, he needs to come through.

The reserve Cubs outfielder was near perfect at the plate on Wednesday as the Cubs split a day-night doubleheader with the Padres.

Johnson first slammed a game-winning home run in game one for a 2-1 victory. He then went went 3-for-4 in game two at Wrigley Field as the Cubs closed the series with two wins in three games.

"In a situation I've been in the last couple of years of my career it's easy to lay down and stop making those efforts because you're not playing as much," said Johnson, who went 4-for-5 on the day and saw his average jump from .181 to .375.

"But when opportunity comes — whether it's injury or you're called upon late in the game to help win a game — if you continue to put that work in and that preparation in usually you're going to be more successful than not."

Johnson's bid for a perfect day fell short in the ninth inning of game two when he grounded out in his final at-bat.

The Padres never trailed in the second game as Ryan Ludwick collected three hits, including one of the Padres' three home runs in a 5-4 decision.

Cameron Maybin and Chris Denorfia also homered off Cubs starter James Russell (1-3) as the Padres rebounded from a 2-1 loss in 11 innings in the afternoon opener. The teams were forced to play the doubleheader after Tuesday night's game was rained out.

After losing in Game 1 on Johnson's homer, San Diego took the lead for good in the second inning of the nightcap on Ludwick's two-run shot. Maybin extended the lead to 3-0 with his homer in the fourth, and Denorfia connected on a solo home run in the fifth.

"The bats came alive," Padres manager Bud Black said. "We all had some good at-bats the second game. It's good to see us bounce back after a loss in the first game."

Johnson drove home Alfonso Soriano in the fifth for Chicago, and Soriano added a two-run homer in the eighth inning, but it wasn't enough to come all the way back.

Aaron Harang (4-0) gave up two runs over six innings before turning it over to the bullpen. Chad Qualls gave up Soriano's homer, which got Chicago within 5-4, but Heath Bell worked around a two-out single by Kosuke Fukudome in the ninth inning for his fifth save.

The opening game of the doubleheader also came down to the wire.

The Cubs led 1-0 when starting pitcher Matt Garza left after six innings. He scattered six hits and walked three while striking out nine — and even scored the Cubs' first run, on a single by Marlon Byrd in the third inning.

The Padres tied the game in the ninth against Carlos Marmol, when Maybin walked, stole second, went to third on Will Venable's bunt single and scored on Josh Barlett's sacrifice fly.

Johnson connected in the 11th off Luke Gregerson (0-1), the fifth Padres pitcher, for the game-winning homer. Reliever Jeff Samardzija (1-0) worked two innings for the victory.

Chicago could have prevented Game 1 from being so tight, squandering a chance in the third inning. After Garza scored, the Cubs loaded the bases with two outs. Carlos Pena grounded out to end the inning, leaving the Cubs clinging to a 1-0 lead.

The Padres threatened in the sixth when Garza walked the bases loaded with one out, but he escaped the jam by getting Brad Hawpe to ground into an inning-ending double play.

Quade pulled Garza after six innings and employed three relief pitchers in the seventh to prevent the Padres from scoring. Left-hander Sean Marshall walked Orlando Hudson to load the bases with two outs before getting Headley to ground out with a full count.

"(Personal) wins don't matter," Garza said. "As long as we get that big one, that big W that goes on our side. Any way we can do it, I'm all for it. If I don't win a game all year, but we win my games it doesn't bother me one bit."

After the Padres tied it in the ninth, Mike Adams gave up a two-out single to Fukudome, ending a streak of 28 consecutive batters retired.

San Diego loaded the bases with one out in the 11th, but Headley and Hundley each flied out to end the threat.'

Notes: Fukudome was out of the Game 1 starting lineup, but the outfielder entered the game in the seventh in right field. His wife delivered a baby girl, the couple's second child, on Tuesday in Chicago ... Tuesday's rainout was the first of the season for either team. Conditions on Wednesday were overcast and dry with temperatures in the 40s. ... With a Thursday home game with Philadelphia, the Padres planned a quick departure from Chicago.