The classical perturbation theory is applied to obtain analytical results for the real and imaginary parts of the eigen-frequencies of an oscillator attached to an inhomogenous string. The accuracy of the results obtained analytically is inspected by comparing them to the results computed numerically.