 He was again elected to the House of Representatives in 1862 and served until being appointed as a Confederate States District Judge in 1864.On June 30, 1865, U.S. President Andrew Johnson appointed Perry as the provisional Governor of South Carolina, because of the strong unionist views he had held prior to the war.Perry was directed by the president to enroll voters and to lead the state in the writing of a new state constitution.