Dodgers strike deal with Perez