Jimmy Perry, who created popular TV comedy shows like Dad's Army and It Ain't Half Hot Mum, has died aged 93.
Perry, who worked closely with producer David Croft, was also responsible for Hi-de-Hi! and You Rang M'Lord?
His writing drew on his life experiences as a young member of the Home Guard during the Second World War and as a Butlin's holiday camp Redcoat.
Perry joined the Watford Home Guard at the age of 16, two years later he was called up into the full-time forces and reached the rank of sergeant.
The character of Private Pike, portrayed by Ian Lavender in Dad's Army and often referred to as "stupid boy", was partly based upon the teenage Perry.
'Allo 'Allo star Vicki Michelle said Perry had left "such a legacy" in his wake.
My heart goes out to Mary Husband at this sad time. She and #JimmyPerry were such a lovely couple. Sending lots of love to a special lady xx— Vicki Michelle (@vickimichelle) October 23, 2016
It Ain't Half Hot Mum was inspired by Perry's experience in the Royal Artillery Concert Party, while You Rang M'Lord? was Perry's last collaboration with Croft. Perry's grandfather had worked as a butler and the show included many of his anecdotes about life "below stairs".
Perry also wrote some of his own theme tunes. He won an Ivor Novello Award in 1971 for the Dad's Army theme Who Do You Think You Are Kidding Mr Hitler and wrote Holiday Rock for Hi-de-Hi!
RIP Jimmy Perry. Amazing contribution to British telly. Watched Dad's Army only yesterday. Still as funny as when I watched it as a kid.— Jack Dee (@TheRealJackDee) October 23, 2016
Shane Allen, BBC controller of comedy commissioning, said Perry's work spanned decades and his shows will be remembered for a long time to come.
He said: "Jimmy Perry is a Goliath of British comedy writing. He was behind some of the longest running and most loved sitcoms on British television spanning the 60s, 70s and 80s.
"His work will be enjoyed and appreciated for many years to come. Our thoughts are with his friends and loved ones at this sad time."
Perry was awarded an OBE in 1978 and he leaves a wife, Gilda.