A Green’s function approach to perturbations of periodic solutions