I have this equation:
$$T=2 P r-\frac{q^2}{4 \pi r^3}+\frac{1}{4 \pi r},$$
and I want to solve it for $r$ perturbatively. This result should be: $$r=\frac{T}{2 P}-\frac{1}{4 \pi T}+\frac{P \left(8 \pi P q^2-1\right)}{8 \left(\pi ^2 T^3\right)}+\cdots$$
I was reading an article where author did this. How can I do this in Mathematica?