A person convicted of perjury or subordination of perjury shall be confined in the penitentiary not less than one nor more than ten years, and a person convicted of false swearing shall be fined not more than $1,000, and, in the discretion of the court, confined in jail not more than one year. And in either case the person convicted shall be adjudged forever incapable of holding any office of honor, trust or profit in this state, or of serving as a juror.