Sri Lanka 421 (Jayawardene 165) & 11-0 v
South Africa 282 (Amla 139no, Perera 5-69)
Second Test, Colombo, day three
Hashim Amla became the first South African captain to score a Test century in Sri Lanka but the home side had built a commanding lead of 150 runs by stumps on day three of the second and final Test in Colombo.
The home side then closed on 11 without loss in their second innings.
South Africa resumed the day on 98 for three and moved to 150 before the day's first pivotal action took place when both AB de Villiers (37) and Quinton de Kock (0) were dismissed in the same over by Perera - the former trapped in front and the latter bowled.
Progress until then had been desperately slow for South Africa, and it would continue to be as JP Duminy laboured over 58 balls for just three runs before he was stumped by Niroshan Dickwella off Rangana Herath.
Next to go was Vernon Philander, who was bowled by Perera while Amla reached his 22nd Test century to help his side inch towards avoiding the follow-on.
With some help from Dale Steyn (30) they got past that mark before both Steyn and Imran Tahir (15) were dismissed by Herath, who finished with four for 71.
Perera notched a second Test five-wicket haul when he had Morne Morkel caught by Upul Tharanga for nought.
At the other end, Amla could only look on, finishing unbeaten on 139 in 382 balls with 12 fours, as his side ceded a 139-run deficit on first innings.
And Sri Lanka began to increase that lead in the final throes of the day, Tharanga making six not out and Kaushal Silva five not out.
After South Africa won the opening Test in Galle by 153 runs, Sri Lanka must win the match to claim a share of the series, and they are now in a strong position from which to mount a concerted push for victory.
An intriguing final two days await.
© Cricket World 2014