CBS has officially ordered Matthew Perry’s remake of Neil Simon’s “The Odd Couple” to pilot, Variety has learned.

The half-hour comedy will star the “Friends” alum as the messy Oscar Madison, the sometimes-friend and sometimes-foil to neat freak Felix Ungar. This project marks Perry’s return to multicamera work, as his recent TV roles have included appearing on “The Good Wife” and “Cougar Town” and starring in the short-lived “Mr. Sunshine.”

Perry, who penned the pilot with “Frasier’s” Joe Keenan, will exec produce along with Eric Tannenbaum and Kim Tannenbaum and Carl Beverly and Sarah Timberman.

CBS had announced a script commitment plus penalty to a reinvention of this project in December.

“The Odd Couple” originated as a theater production and was adapted into the 1968 Jack Lemmon-Walter Matthau feature film before seeing two runs on ABC, the first of which starred Tony Randall and Jack Klugman. A femme-focused version of the play opened on Broadway in 1985 and starred Sally Struthers and Rita Moreno.

Perry is repped by CAA.