Hernan Perez had two triples and a home run in the win