Who needs who more?

‘Friends’ Star Perry Seals ‘McBeal’ Deal

Matthew Perry has a new lawyer in his life: “Ally McBeal.”

The “Friends” star, who just signed for a ninth and final season of the hit sitcom, is closing in on a deal to guest star in two upcoming episodes of David E. Kelley’s Fox comedy-drama. It marks one of the few times that Perry has appeared in a television series other than his own show, where he plays newlywed Chandler Bing.

He will play a “cocky, successful and opinionated attorney who wreaks havoc on Ally’s personal and professional lives,” a spokesman for the show said. His two episodes will be combined into a special two-hour “Ally” event set to air in April.

As always, the Kelley camp is keeping mum on specifics of the Perry episodes. However, Perry’s appearance is set to coincide with that of another previously announced guest thesp, Christina Ricci.

“Matthew Perry displays a strong presence and natural comedic ability on his other TV project, which makes him a natural choice for ‘Ally McBeal’,” said “Ally” co-executive producer Alice West.

Perry is the latest in a long line of guest stars to do turns on “Ally” this season, the show’s fifth. Others who’ve made appearances include Jon Bon Jovi, Jami Gertz, Tom Berenger, French Stewart, Elton John and Mariah Carey.

Perry’s recent feature credits includes “The Whole Nine Yards” and “Fools Rush In.”