Boo! A Madea Halloween, which Perry directed, wrote, co-produced and stars in, took $27.6m (£22.6m) on its opening weekend.
Jack Reacher: Never Go Back, the second film in the franchise, debuted at number two with $23m (£18.8m).
Last week’s number one, The Accountant, dropped to number four after taking a further $14m (£11.4m).
The crime drama stars Anna Kendrick and Ben Affleck and tells the story of a man who uses his accountancy office as a front for his work for criminal organisations.
Supernatural horror film Ouija: Origin of Evil, a prequel to 2014 film Ouija, took $14.1m (£11.5m) to debut in third place.
The Girl on the Train, starring Emily Blunt, rounded off the top five, taking $7.3m (£6m) on its third weekend of release.
Further down the top 10, Keeping Up With the Joneses launched with a relatively disappointing $5.6m (£4.6m), landing at number seven.
The comedy, which stars Isla Fisher, Gal Gadot and Jon Hamm, received poor review from critics.