Ranges and inverses of perturbed linear operators