Any wilful false statement made under oath or affirmation or in writing, stating that it is so made, although such oath or affirmation may not have actually been made, by any person regarding any material matter or thing relating to any subject being investigated, heard, determined or acted upon by any county board of elections, or member thereof, or by any court or judge thereof, judge of election, inspector of election, or overseer, in accordance with the terms of this act, shall be perjury, a misdemeanor of the first degree, and any person upon conviction thereof, shall be sentenced to pay a fine not exceeding ten thousand ($10,000) dollars, or to undergo an imprisonment of not more than five (5) years, or both, in the discretion of the court.
25 P.S.§ 3502