Perera spins Sri Lanka to victory against Australia