 At Thiruvananthapuram, Ramaiya learned Malayalam and later he joined the Maharaja Sanskrit college and obtained a degree in grammar.Ramaiya was very religious, and with the death of his mother Yogambal in 1910, when he was 20, became even more so.He wandered from place to place visiting temples and singing devotional songs.