In this work, a class of perturbed nonlinear Schrödinger equation is studied by using the homotopy perturbation method. Firstly, we obtain some Jacobi-like elliptic function solutions of the corresponding typical general undisturbed nonlinear Schrödinger equation through the mapping deformation method, and secondly, a homotopic mapping transform is constructed, then the approximate solution with arbitrary degree of accuracy for the perturbed equation is researched, it is pointed out that the series of approximate solution is convergent. Finally, the efficiency and accuracy of the approximate solution is also discussed by using the fixed point theorem.