The ball hits Dunk's elbow but he tries to turn his left shoulder to get out of the way. The ball doesn't change direction so although there is contact, it doesn't really affect where it is going. The ref had a clear view of it.
Perch should have got a yellow at the very least, if not red.