Working with producer David Croft, he was also responsible for It Ain’t Half Hot Mum, Hi-de-Hi and You Rang M’Lord?
He drew on his life experiences for his writing, particularly as a young member of the Home Guard during World War Two and as a Butlin’s holiday camp Redcoat.
Dad’s Army ran from 1968 for 80 episodes over nine years while Hi-de-Hi ran for eight years.
Perry was born on 20 Sep 1923 in Barnes, south-west London.
He was too young to join the army when World War Two broke out in 1939, so instead he joined his local home guard.
He later based many of the characters for the sitcom on the soldiers he met at that time.
After the war, he trained as an actor at the Royal Academy of Dramatic Art, and spent time entertaining holiday-makers at Butlin’s camps.
He ran the Palace Theatre at Watford, putting on a different show each week and played bit parts in TV sitcoms before he began to write them himself.
He showed his ideas for Dad’s Army - initially called The Fighting Tigers - to David Croft, who took it to the BBC.
The character Private Pike was based on Perry himself.