regulation of sensory perception of pain [GO_0051930] - Virtual Fly Brain