A Perron type theorem for functional differential equations