p(x)-Laplacian equations in RN with periodic data and nonperiodic perturbations