The Liapunov-Razumikhin technique is applied to obtain the existence, uniqueness and stability of almost periodic solutions to neutral functional differential equations with nonautonomous operator and its perturbed systems. An example is given to illustrate the results.