During the 90's in elementary school was the last time I remember spanking in schools. I still remember one exchange I had with another kid on my on my way from the principal's office. I didn't get spanked that particular time, but he thought he was being slick and stuffed paper towels in his pants. He came back to gym class sobbing. We also had the rumor floating around about the principal's aerodynamic paddle. I didn't get it used on me, however I saw it on a stand he had in his office more than once.
I was spanked at home as well. I don't really know the effectiveness of it. Obviously, it worked in the moment however, I think it just desensitized myself to the idea that violence was: 1) An acceptable way to deal with problems and or confrontation 2) Desensitized myself to that form punishment and eventually became ineffective.
So of course, there were problems. Fighting occurred often, and even if violence was supposed to be the deterrent it didn't stop me. Which led to a string of events and influences that probably weren't for the best.
Overall, I'd say I'm in between how I feel about it. On one hand, I don't think people should fear violence as a deterrent to any societal rebelliousness or going against the grain. Think like me or I'll hurt you. Now, it could be said that stems from being punished that way. I think there are definitely problems sourced from adults who are both unfamiliar with both violence as a deterrent and those who fear acting out of expectations will result in violence.
I think withdrawal of money (resources in general) is more effective at treating bad behavior. I think any kid that received an allowance, and getting in trouble meant the difference between having a cool new Power Ranger toy or not, would adjust their behavior. Then again, I don't like that option either. And neither is that option 100% effective.
Even reasoning with a kid can be both effective or a waste of time. I know there were occasions where I would decide that the potential for punishment or the consequences were in fact justified by whatever reasoning or desire was determined logical for varying circumstances.
It's almost like all kids are different /s
Perspective might be the best, and humbling exposure. Strong moral foundations rooted in experience.