As an aside, Singapore, Malaysia and Brunei still have recourse to the rattan (or the cane). There is a long and interesting article on Wikipedia here,
https://en.wikipedia.org/wiki/Caning_in_Singapore
Which goes into detail about caning as a punishment with information as to who may be caned, what offences are liable for caning, ages and physical health, the number of strokes, and much more.
Essentially only males may be caned, females are NOT caned, but face a different punishment.
I found it an interesting and informative read.