After an introduction to the perturbative topological string, we will show how to compute the higher genus world sheet instantons in the topological string with a compact Calabi-Yau target space. We will explain the different methods involved and some of their relations to mathematics. In particular, we show that for K3 fibrations there exist generating functions for a subset of the instanton numbers which are automorphic forms.