Nerve supply to the perineum is
Pudendal nerve, its course through the lesser sciatic foramen, and branches, including inferior anal at bottom right. The superficial branches of the internal pudendal aery. The perineal nerve is a nerve arising from the pudendal nerve that supplies the perineum. Ref - BDC 6e vol2 pg363
Pudendal nerve
Inferior rectal nerve
Pelvic splanchnic nerves
Hypogastric plexus
Abdomen and pelvis