Walks to Jonny Gomes and Jose Iglesias around Stephen Drew’s single loaded the bases. Perez fell behind Ellsbury 2-1 in the count and left with a shoulder injury. Ellsbury then doubled to left-center, and was chased down by teammates who ran from the dugout to celebrate Boston’s ninth win in 12 games.

“His mind-set, I would think, is to attack the hitter,” Ellsbury said in the middle of Boston’s clubhouse. “The last thing I think he’s wants to do is walk me and bring in the tying run. I just wanted to be aggressive in the zone and get a pitch I could drive. Fortunately, I got it.”

Boston won three of four against Cleveland, managed by Terry Francona in his first series back at Fenway Park since leaving the Red Sox after the 2011 season. Francona led the Red Sox to World Series titles in 2004 and 2007.

It was Boston’s ninth win in 12 games.

“When you think back to the ninth inning, they key at-bat to me was Iglesias’ walk,” Boston manager John Farrell said. “He fouls off a tough two-strike pitch, takes a close 3-2 pitch to walk. Unfortunately for them, Perez goes out with an injury. We felt like when Smith came in, that arm slot fit Jake’s (Jacoby’s) swing pretty well, and we saw the reason for it.”

Perez said he’s been dealing with some arm pain.

“I felt a little something in the shoulder today out there. Obviously not the best timing there. So, it’s something I have to deal with,” he said. “On that last pitch to Ellsbury. It kind of pinched on me and sent a little pain down my arm. Then I tried to throw another pitch, and it just wasn’t happening.”

Francona knew what a tough spot it was for Smith.

“It’s very difficult. That’s tough duty,” he said. “With a 2-1 count you’ve got to throw a strike, and he did. To Ellsbury’s credit, he put the wood on it and put the barrel on it and now we’ve got to go regroup.”

Craig Breslow (2-0) allowed one run and two hits in two innings. Red Sox starter Felix Doubront gave up four runs — two earned — and five hits in six innings with eight strikeouts.

Cleveland’s Corey Kluber gave up one run and three hits in 6 2-3 innings. Nick Swisher and Jason Kipnis hit solo homers for the Indians.

Carlos Santana’s two-run single hit a two-run single in the first after Ellsbury dropped Kipnis’ fly to center for an error.

Daniel Nava had an RBI single in the third after Stephen Drew snapped an 0-for-17 slide with a double. Kipnis homered off the Pesky Pole in right in the fifth, and Swisher homered in the Green Monster seats in left leading off the sixth. Swisher’s sacrifice fly made it 5-1 in the eighth, and Iglesias had a sacrifice fly in the bottom half.