Singer (4-9) matched his season high with seven innings and allowed four hits with no walks and struck out six.
It was the third time this season that Singer has issued no walks.
Perez had his third home run of the series, eighth in the last 11 games and 41st of the season. He's second in the majors behind Shohei Ohtani.
Dylan Cease (11-7) took the loss. He gave up four runs and four hits in five innings. He walked three and struck out nine.