Later work
From 2001 to 2002, Perry starred in the HBO prison drama Oz, as Reverend Jeremiah Cloutier. From 2002 to 2004, he starred in the post-apocalyptic television series Jeremiah. Perry went on to star in a 2002 television film called The Triangle. In 2006, Perry co-starred in the ensemble drama series Windfall, about a group of friends who win the lottery. The series ran for 13 episodes during the summer of 2006 on NBC. In 2007, he landed the role of Tommy "Santa" Santorelli on the film The Sandlot: Heading Home, and he appeared in the 2008 western A Gunfighter's Pledge. Perry also appeared in the 2007 HBO series John from Cincinnati. He also starred in the Swedish film Äntligen Midsommar (Finally Midsummer), which was released in the summer of 2009.
Perry did considerable voice-over work for various animated series, usually playing himself. He played himself (as Krusty the Clown's half brother) in "Krusty Gets Kancelled", an episode of The Simpsons (1993). He voiced himself in an episode of Johnny Bravo, giving Johnny dating advice after Johnny saved him from a stampede of fan girls. Perry parodied himself in "The Story on Page One", an episode of Family Guy, in which he sues Peter Griffin for calling him gay in a newspaper article. His other voice work includes The Incredible Hulk as Rick Jones, Biker Mice from Mars (which also starred fellow 90210 co-star Ian Ziering), Mortal Kombat: Defenders of the Realm, and The Night of the Headless Horseman.
Perry guest-starred as gay characters in the sitcoms Spin City (1997) and Will & Grace (2005); in the former, he appeared as Carter Heywood's ex-boyfriend who subsequently fell in love with a woman, and in the latter he played a birdwatcher who catches the eye of Jack McFarland. In 2005, Perry was reunited with former 90210 co-star Jennie Garth when he guest-starred on What I Like About You in a loose parody of their 90210 characters' relationship. In 2008, Perry guest-starred as rapist Noah Sibert in the season premiere of the television series Law & Order: Special Victims Unit. He also guest-starred as cult leader Benjamin Cyrus in an episode of Criminal Minds. In late 2009, Perry starred in The Killers' music video for their fourth annual Christmas single, "¡Happy Birthday Guadalupe!".
The same year, Perry participated in Thomas Nelson's audio Bible production known as The Word of Promise. In this dramatized audio, Perry played both Saint Stephen and Judas Iscariot. The project also featured a large ensemble of other well-known Hollywood actors, including Jim Caviezel, Louis Gossett Jr., John Rhys-Davies, Jon Voight, Gary Sinise, Jason Alexander, Christopher McDonald, Marisa Tomei, Stacy Keach, and John Schneider.
Perry appeared on Broadway in 2001 in a revival of The Rocky Horror Show, playing Brad Majors. In 2004, he appeared in the London production of When Harry Met Sally ... as Harry, alongside Alyson Hannigan as Sally. He played a con man/psychic in a second-season episode of Leverage in 2010, and then appeared as the American version of Inspector Spacetime in an episode of Community in 2013, titled "Conventions of Space and Time". Later that year he played Superman in the film Superman: Quest for Steve.
From 2017 until his death in 2019, Perry starred as Frederick "Fred" Andrews, Archie's father and owner of Andrews Construction, on The CW series Riverdale. All episodes aired after his death were dedicated to him. His final film role was as actor Wayne Maunder in the 2019 Quentin Tarantino film Once Upon a Time in Hollywood, about 1960s Hollywood around the time of the Tate–LaBianca murders.