Right-hander Matt Cain has left his start against the Pittsburgh Pirates in the top of the fourth inning after getting hit in the pitching arm on a line drive by Pittsburgh's Gaby Sanchez.