Perturbation of operators and applications to frame theory