Any person subject to this code who in a judicial proceeding or in a course of justice conducted under this code willfully gives, upon a lawful oath or in any form allowed by law to be substituted for an oath, any false testimony material to the issue or matter of inquiry is guilty of perjury and shall be punished as a court-martial directs.