Corey Perry scored the overtime winner as the Anaheim Ducks eliminated the Calgary Flames in five games.