Many versions of the popular sea shanty "Drunken Sailor" includes the following verse:
What shall we do with a drunken sailor,
Put him in bed with the captain's daughter.
Sources including Wikipedia claim that this is a reference to getting whipped with the cat o' nine tails, but Wikipedia itself states that this "failed verification" and I was unable to dredge up a reliable historical source on this on Google Scholar, which mostly dredges upreturns a lot of hits about Pushkin's novel.
For comparison, getting whipped while bent over a cannon is apparently known as "kissing the gunner's daughter" (although there's a similar dearth of sources here), while "letting the cat out of the bag" apparently has nothing to do with corporal punishment.