Florentino Perez survived Real Madrid's first genuine presidential contest in two decades in the early hours of Monday.