Perez homers, Cain makes an oustanding catch in Royals' win