Global existence for a class of semilinear perturbed wave equations