Thisara Perera top-scored for Sri Lanka with a 16-ball 32 not out, while paceman Sohail Tanvir bagged three wickets for Pakistan.