To punish with a ferule.
A ruler-shaped instrument, generally used to slap naughty children on the hand.