NEW YORK -- Oliver Perez was back at it, walking one batter after another. This time, however, he managed to wriggle out of trouble.
Perez won despite a wild return from the disabled list and the depleted New York Mets finally mustered some offense Wednesday night, overcoming Manny Ramirez's homer in a 5-4 victory over the Los Angeles Dodgers.
David Wright snapped an 0-for-17 slump with his first RBI this month. Daniel Murphy doubled twice and made an incredible play at first base, and the Mets ended a four-game skid with their third victory in 12 games.
"It was a big win for us," manager Jerry Manuel said. "We needed to win a game."
Ramirez hit a leadoff shot to right in the ninth inning off Francisco Rodriguez, making it 5-4. The All-Star closer walked his next batter, but got Andre Ethier to ground into a game-ending double play with two on for his 22nd save in 25 chances.
Ramirez's 535th homer broke a tie with Hall of Famer Jimmie Foxx for 16th place on the career list, one behind Mickey Mantle.
Booed consistently by the crowd of 40,027, Ramirez went 1 for 5 in his fifth game back following a 50-game drug suspension. He played all nine innings for the first time since his return -- the enigmatic slugger was ejected for throwing equipment following a fifth-inning strikeout Tuesday night.
Ramirez said umpire John Hirschbeck told him Wednesday that he missed the call in question the previous night.
"We're friends. Everybody makes mistakes. I overreacted," Ramirez said.
Ramirez, who stranded two runners with a sixth-inning groundout against Bobby Parnell, is 4 for 16 (.250) with two home runs and five RBIs since returning to the lineup.
"I've still got a long way to go," Ramirez said, explaining that he needs to build strength in his legs. "I'm pretty sure I'm going to get there."
Perez (2-2) was wild all night, but didn't wilt. He walked a season-high seven in five innings, then left for a pinch hitter with a 5-2 lead. He allowed four hits and struck out two, throwing 55 of 108 pitches for strikes.
"He was flowing in and out of rhythm. It became very challenging for us," Manuel said. "But one thing about Ollie, he competes and gives you everything he's got. And tonight that was enough to get him through five innings."
Re-signed by the Mets to a $36 million, three-year contract in the offseason, Perez had been sidelined since May 3 because of tendinitis in his right knee. He opened the season 1-2 with a 9.97 ERA in five starts.
"I kind of felt like we let him off the hook a little bit," said Dodgers cleanup hitter Casey Blake, who walked four times. "We needed a big hit and we didn't come up with it."
Beltran hasn't played since June 21 and has been limited to working on a bicycle and in a pool. He was elected to start Tuesday's All-Star game in St. Louis but will not go.
National League manager Charlie Manuel of the Phillies confirmed as much earlier Wednesday, saying that Beltran will miss the game at Busch Stadium.
"I don't know if it's official yet," Manuel was quoted as saying in the St. Louis-Post Dispatch, "but he will not be playing and we'll go from there."
New York finally caught a break in the seventh, when Mark Loretta's grounder caromed off first base and up in the air. A stumbling Murphy scooped up the ball and made a blind, behind-the-back flip to Parnell covering first base for the out.
"I just grabbed it and flipped it," Murphy said. "That's just reaction right there, and being in the right place at the right time."
Loretta put both hands on his helmet and manager Joe Torre came out to argue, to no avail.
"That was about as unlucky as I've been on a baseball field in my career," Loretta said.
Perez walked his first batter on four pitches -- and none were close. The erratic left-hander issued three straight free passes in the third, but escaped unscathed.
He said he was "a little nervous."
"Sometimes you don't have command," Perez said. "Just one of those games you have to keep your team in the game. I feel healthy. I feel strong. I know what I have to do to get better."
New York broke loose for three runs in the third to take a 4-1 lead. Murphy hit his second double and scored when Wright singled for his first RBI in seven games since June 30.
An error by Blake at third base allowed another run to score, and Reed added an RBI single.
Ramirez reacted late in left field on Murphy's first-inning double over his head. The Mets had gone 29 innings without an extra-base hit, matching a club record done 12 times previously -- the last in 1992.
Kuroda lasted 4 1/3 innings, his shortest start this season. ... New York improved to 1-4 against the Dodgers this year.
Information from The Associated Press was used in this report.
Starling Marte available for Miami Marlins after hand injury, but not likely to bat
Starling Marte likely will not bat, but he is available for the Marlins in Game 2 vs. the Cubs, manager Don Mattingly told SiriusXM Radio. Magneuris Sierra will start in center field.
Braves, Reds look for improved offense in Game 2
Atlanta Braves right-hander Ian Anderson and Cincinnati Reds righty Luis Castillo have a tough act to follow in the second game of the National League wild-card series.
Darvish tries to save Cubs' season against Marlins
It could be up to Yu Darvish to save the Chicago Cubs' season.
Padres turn to Paddack against Cardinals in Game 1
When the San Diego Padres move into their first postseason game in 14 years Wednesday, not only will they face their playoff nemesis the St. Louis Cardinals, they'll do it with a pitching staff very much in flux.
Plenty of unknowns heading into White Sox-A's Game 3
The Chicago White Sox and host Oakland Athletics will play a deciding third game in their American League first-round playoff series Thursday afternoon. That much is known.
A case for Juan Soto as the MLB Latino Face of the 2020s
We present the case for four superstars to be considered as the Latino Face of MLB in the 2020s, with our winner to be revealed Friday. Today we offer the Nationals' Juan Soto, the brash Dominican champion who backs up his style with substance.