The Ducks have won 11 of their last 15 in a bid to save their season. Anaheim is still eight points out of a playoff position. The Hurricanes missed out on a chance to win three in a row for the first time since October.
Anaheim did not lead until Perry's blast gave him his 23rd goal of the season.
Tuomo Ruutu scored for Carolina with 2:03 left in the opening period, but Anaheim tied it on Nick Bonino's tip-in late in the second.
Jonas Hiller stopped 31 shots to get the win. Ward also had 31 saves.
Pregnant Mila Kunis wins 'Best Villain' at MTV Movie Awards
Pistorius testifies he didn't consciously pull trigger when he shot girlfriend