Corporal punishment. What a misnomer. What was written so many eons ago is still meaningful today.
Children need to be disciplined and if the rod is one of those applicable tools, then use it. What needs to be put in place is a system that meets a generally accepted methodology.
In my day, many years ago, only specified teachers had the authority to use the rod. I think we should revert to corporal discipline but use it with psychological explanations, such as, that to avoid receiving it,
better behaviour, better conduct, better application to study, need to complete assignments, polite speaking etc., are what is expected.
Teachers in every school do recognize very early behavioural problems, and try as they do, they are limited as to what they can do. A lot is left to hope.
The oddity is that parents expect teachers to teach, train and develop their children into good adults while leaving discipline to them the parents.
When parents try to discipline their children, they end up before the Courts with child abuse charges. Such a foolish system!
Spare not the rod and spoil the child. It was good then and is still good today. Discipline them, but use modern psychology in the process.