OTTAWA -- 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.

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.