We define L-functions for the class of real-analytic modular forms recently introduced by F. Brown. We establish their main properties and construct the analogue of period polynomial in cases of special interest, including those of modular iterated integrals.