Let $f$ be holomorphic in all of $\mathbb{C}$ except for poles at $z=0$ and $z=1$. Further $f$ satisfies: \begin{equation} \displaystyle \lim_{|z|\to \infty} f(z)=0 \end{equation} I've to prove that $f$ is a rational function.
Approach: I considered the function $h(z) = z^n (z-1)^m f(z)$, with $n,m$ the orders of the poles $0$ and $1$. Clearly $h$ is holomorf in $\mathbb{C} \backslash \{0,1\}$. But because the limit of $h$ for $z\to 0$ or $z\to 1$ is finite (and non zero), by Riemanss theorem it follows that $h$ can be extended to an entire function. If $h$ has a removable singularity at $\infty$, we know that $h$ must be constant, so that $f$ is for sure a rational function. If I now can exlude the case that $\infty$ can be an essential singularity of $h$, we are done because then it follows that $h$ is polynomial and thus $f$ is a rational function. But how to approach this latter case? Thanks