CBS has handed a script commitment plus penalty to a reinvention of “The Odd Couple” from Matthew Perry, Variety has confirmed.

Based on Neil Simon’s “The Odd Couple,” project centers on two mismatched roommates, messy Oscar Madison and neat freak Felix Ungar. Perry is slated to star as Madison.

Along with toplining the comedy, Perry will serve as producer and co-write the laffer with Danny Jacobson. CBS TV Studios is attached to the reboot along with Timberman-Beverly and The Tannenbaum Co.

Exec producers include Perry, Jacobson, Carl Beverly, Sarah Timberman, Eric Tannenbaum and Kim Tannenbaum.

Perry, who rose to fame on NBC’s “Friends,” returned to the Peacock in 2012 as star of “Go On.” In May, NBC cancelled the program after one season. Perry has also appeared on “The Good Wife” in recent TV seasons. Perry also co-created ABC’s “Mr. Sunshine,” which ran for one season on the Alphabet in 2011.

“The Odd Couple” was originally a legit production and was adapted into a feature film in the ’60s. Following the pic, “Odd Couple” saw two runs on ABC as a sitcom, most notably starring Tony Randall and Jack Klugman.

Deadline was first to report on the “Odd Couple” project at CBS.