(a) A person may not willfully and falsely make an oath or affirmation as to a material fact:
(1) if the false swearing is perjury at common law;
(2) in an affidavit required by any state, federal, or local law;
(3) in an affidavit made to induce a court or officer to pass an account or claim;
(4) in an affidavit required by any state, federal, or local government or governmental official with legal authority to require the issuance of an affidavit; or
(5) in an affidavit or affirmation made under the Maryland Rules.
(b) A person who violates this section is guilty of the misdemeanor of perjury and on conviction is subject to imprisonment not exceeding 10 years.
(c) (1) If a person makes an oath or affirmation to two contradictory statements, each of which, if false, is prohibited by subsection (a) of this section, it is sufficient to allege, and for conviction to prove, that one of the statements is willfully false without specifying which one.
(2) If the two contradictory statements made in violation of paragraph (1) of this subsection are made in different counties, the violation may be prosecuted in either county.
(d) A person who violates this section is subject to § 5-106(b) of the Courts Article.