Getzlaf scored the go-ahead goal late in the third period, Ryan had two goals and Perry added two assists in a 4-2 win over the New York Islanders on Friday night, snapping a three-game losing streak.
"We got mad instead of hanging our heads when we fell behind," Ducks coach Bruce Boudreau said. "You can't play without passion in this league. Tonight we had it and it was channeled in the right direction."
Getzlaf ended a 12-game scoring drought with just his third goal in his past 30 games.
"Terrible," the Ducks' captain said, describing the past few weeks. "It's frustrating for me and I'm sure a lot of other people in the organization. The hard work is what brings you out of it."
Jonas Hiller stopped 19 shots to earn his 99th NHL career victory for the Ducks, who avoided their second four-game losing streak of the season.
"It's a starting point," Ryan said. "Hopefully we can string some things together."
The Islanders led 2-1 early in the third on a goal by Kyle Okposo, only to have the Ducks score the game's final three goals and end New York's three-game winning streak in a matchup of two teams next-to-last in their respective divisions.
Islanders left wing Matt Martin said it's hard to believe the Ducks have struggled as much as they have this season.
"They were obviously going to get out of it eventually, but unfortunately it was against us," he said. "We did a good job for two periods, frustrating them and kind of letting them sleep. But then we gave them too much time and space (with the puck) in the third period and kind of let them build momentum for themselves."
Evgeni Nabokov made 16 saves for the Islanders, leaving him two wins away from 300.
Ryan tied the game at 2 with the second short-handed goal of his career at 9:22 of the third, fighting off two defenders as he closed in on the net. Perry earned his first assist of the game for his 400th NHL point.
"Perry did most of the work," Ryan said. "I tried a 1-on-1 move, tried my forehand and generally I miss those. It was a great goal to feel good about yourself."
With Anaheim's Cam Fowler and New York's P.A. Parenteau serving penalties, Getzlaf scored 4-on-4 with a shot in the top of the net at 12:25 that gave Anaheim a 3-2 lead. Perry picked up his second assist.
"We tried to move the puck up the wall there, but Perry stole the puck and Ryan made a good shot," Okposo said. "That short-handed goal gave them some life and gave the crowd some life, and they fed off that. We kind of sat back on our heels a little bit, and you can't do that in this league."
Teemu Selanne scored his 12th goal on a rebound in front of the net to make it 4-2 at 17:06.
"Bobby and Getz scored big goals. That's a great sign," he said. "Everything is about confidence, especially with Getzy. He hasn't found the confidence lately. He takes a lot on his shoulders as captain. Lately it's been more tougher with the mental side to lose night after night."
New York tied the game 1-1 at 16:04 of the second period. Hiller lay on his right side in the net as Martin swooped around from the right side and went for the puck resting on the goal line. Before he could get to it, Hiller's glove nudged it across the line.
The Ducks led 1-0 on Ryan's rebound in front of the crease at 14:18, nine seconds after Anaheim's power play ended.
The Islanders, who twice hit the post, outshot the Ducks 8-3 in the scoreless first when there were no penalties.
Islanders C Marty Reasoner broke his right thumb. ... Ducks RW George Parros missed the game because of a strained groin. ... The teams played for the first time since the Islanders won 3-2 on Dec. 16, 2010. ... The Islanders are 5-3-4 against Western Conference opponents this season. ... Islanders D Travis Hamonic played in his 100th consecutive game, the team's first player to do so since Janne Niinimaa played 136 in a row ending in the 2005-06 season. ... Anaheim's first short-handed goal of the season left Calgary as the only team without one.