Piecewise linear perturbations of a linear center