Dubai -Off-spinner Dilruwan Perera took three wickets to push Sri Lanka closer to an impressive win on the fourth day of the second and final day-night Test in Dubai on Monday.
Perera dismissed Haris Sohail (ten), Shan Masood (21) and Babar Azam (nought) to leave Pakistan in tatters on 62-5 at dinner after they were set a tough target of 317 to win.
At the interval Asad Shafiq (four) and Sarfraz Ahmed (seven) were at the crease as Pakistan, needing another 255 runs to win, face their first series defeat in United Arab Emirates since adopting it as their home venue in 2009.
Pakistan were forced to play at neutral venue since 2009 terrorists' attacks on the Sri Lankan team suspended international cricket in their country.
Sri Lanka had won the first Test by 21 runs in Abu Dhabi.
Pakistan were off to a disastrous start when opener Sami Aslam fell for one, caught in the slip off paceman Lahiru Gamage.
Masood and Azhar Ali (17) added 31 for the second wicket before the wicket slide began with Ali caught off paceman Nuwan Pradeep for 17.
Earlier, paceman Wahab Riaz grabbed 4-41 and left-arm spinner Haris Sohail took 1-3 to dismiss Sri Lanka for 96 in their second innings after they resumed at 34-5.
Pakistan needed early gains and Riaz provided them with the important wicket of Niroshan Dickwella in the fifth over of the day for 21.
Leg-spinner Yasir Shah dismissed Dilruwan Perera for nought to leave Sri Lanka in danger of being dismissed for their lowest ever total of 71 against Pakistan.
But Kusal Mendis (29) and Rangana Herath (17) added 35 for the eighth wicket to frustrate Pakistan before Sohail struck thrice in his only over to give his team hope of an upset win.
Shah finished with 2-47.