Text this: Perturbations of an Ostrowski type inequality and applications