The Ottawa Senators took both of their split squad games against the Toronto Maple Leafs Wednesday, edging their provincial rivals 4-3 in a shootout on the road in Toronto and topping them 3-2 at home.

Bobby Ryan scored twice to lead the Ottawa Senators to a 3-2 victory over the Toronto Maple Leafs in pre-season action Wednesday night.

It was a split squad game as the two teams were also playing in Toronto.

Matt Puempel scored a power-play goal and Craig Anderson stopped 20 shots for the Senators.

Sam Carrick and Morgan Rielly scored for the Leafs. Antoine Bibeau allowed two goals on 18 shots while Cal Heeter, who came in midway through the second, allowed one goal on 17 shots.

Ottawa made it 3-1 on Ryan's second goal of the game early in the third. Ryan tipped a Patrick Mullen point shot that Heeter couldn't handle.

With 26 seconds remaining Rielly made it 3-2 as he beat Anderson high stick side.

The Leafs nearly tied the game in the dying seconds when Daniel Winnick hit the post.

After a scoreless first the Senators jumped out to a 2-0 lead before the Leafs made it 2-1 on Carrick's goal midway through the period.

Ryan opened the scoring at the six-minute mark, beating Bibeau shortside. Then Puempel, who continues to make a good impression, tipped an Erik Karlsson point shot and then grabbed his own rebound to make it 2-0 to the delight of the 15,865 on hand.

Carrick cut the lead in half as he was able to beat Anderson from in close.

Shots were 11-11 after the first period, but Ottawa had the better chances -- specifically Ryan.

Ryan had two solid chances, but it was the second of the two that was most frustrating for Ryan as he took a great pass from Clarke MacArthur and then put the shot right in Bibeau's chest.

Meanwhile in Toronto, James Reimer's 2014 pre-season debut went like many of his previous starts with the Leafs during happier times.

The Leafs were out-shot and forced Reimer to keep them in it, and the goaltender was up the task in his half of Wednesday night's split-squad game against the Senators at Air Canada Centre. Reimer had a perfect showing with 18 saves, though the Leafs coughed up the lead before losing 4-3 in a shootout.

Reimer played the game's first 30 minutes 14 seconds and withstood a shot disadvantage of 18-9 before giving way to Christopher Gibson. When shown on video screens with his stats from the night, Reimer received some nice applause from the tepid exhibition crowd.

Nazem Kadri, Jake Gardiner (power play) and James van Riemsdyk scored for the Leafs, who iced one team in Toronto and another against the Senators at Canadian Tire Centre in Ottawa. The Senators won that game 3-2 as Bobby Ryan scored twice.

Shane Prince, Alex Chiasson (short-handed) and Ryan Dzingel had the Senators' goals in Toronto. Robin Lehner played the entire game for Ottawa and stopped 24 of the 27 shots he faced in regulation and overtime.

Milan Michalek had the shootout winner.

Lehner is expected to be Craig Anderson's backup with the Senators again this season, and a similar thing could be said of Reimer. Jonathan Bernier emerged as the No. 1 goaltender last year, and though coach Randy Carlyle continued to call them "1A and 1B" in training camp, few believe it's actually that close.

But Reimer is determined to compete with Bernier, who's coming off sports hernia surgery and a couple of injuries that ended his 2013-14 season. Reimer, 26, signed a two-year deal as a restricted free agent over the summer.

Notes -- Bobby Ryan, Chris Neil and Erik Karlsson all wore an "A" for the Senators. Daniel Winnik, Colton Orr and Morgan Rielly wore the "A" for the Leafs. Injured Leafs forwards Tyler Bozak and David Clarkson practised Wednesday and could play Friday at the Buffalo Sabres. ... First-round pick William Nylander, who scored Tuesday night, was held off the score sheet in his second career pre-season game and hit the post in the shootout.