CSA said that it was disappointed with Olivier, who rejected a national contract and decided to continue his career as a Kolpak player.
Duanne Olivier has become the latest South African to quit and sign a county contract.
Olivier took 24 wickets in the 3-0 clean sweep of Pakistan and another seven in two Tests against Sri Lanka.
Lakmal said a key for Sri Lanka's bowlers was that they bowled consistently in the right areas.
South Africa had an overall lead of 159 after bowling out the tourists for 154 in their first innings at St George's Park.
Sri Lanka were 60 for three at the close at St George's Park after bowling out South Africa for 222.
Perera reached a career-best 40th position after 15 Tests, scoring 51 and an unbeaten 153.
Sri Lanka, needing 304 to win, were 83 for three at the end of the third day at Kingsmead, 221 runs short of their target.
Sri Lanka, needing 304 to win, were 83 for three at the close, 221 runs short of their target.
South Africa could score only 76 runs in the last 60 deliveries in the series opener and never looked to threaten the Pakistan bowlers.