Ling was the youngest of three sons, and from his youth upwards proved to be of a mild and studious disposition. Most of his time was spent in reading the sacred books, and at an early age he found the worship of apes to be repulsive to his gentle nature, and resolved to break through the venerable traditions of his family by devoting his time to literary pursuits, and presenting himself for the public examinations at Canton. In this his resolution was strengthened by a rumour that an army of bowmen was shortly to be raised from the Province in which he lived, so that if he remained he would inevitably be forced into an occupation which was even more distasteful to him than the one he was leaving.