Hornblower (2001)
In this Hornblower story, set during the French Revolutionary wars in the late 18th century, a young British midshipman (played by Terence Corrigan) suffers at the hands of a martinet, theship's captain. The lad is ordered to be caned on two occasions for quite trivial faults, a dozen cuts being the punishment. As well as it being a painful ordeal, the midshipman finds it humiliating to have to bend over for the rod in front of the ship's officers, the more so since the beating is administered by an ordinary seaman.
'The dishonourable part of Mr Wellard has paid the price of his dishonour,' says the Captain (played by David Warner) following the first caning.