Text this: Control of homoclinic chaos by weak periodic perturbations