The character of Dr. P is a homage to the headmaster of the fictional Yeovil College of Lifemanship, Stephen Potter, in the original 1960 film. The Lifemanship books, actual works on which both films are based, were written by the real author named Stephen Potter.
