You would have been very hard pressed, indeed, to seek a romantic association with some of the captain's daughters I met in the Merchant Navy. I can only assume that line describes a severe form of punishment in itself and doesn't stand for anything else.