In an indictment or accusation of perjury or subornation of perjury, it shall be sufficient to state the substance of the offense charged against the accused, and in what court or by whom the oath was administered which is charged to have been falsely taken, and to make an averment that such court or person had competent authority to administer the same, together with the proper averments to falsify the matter wherein the perjury is assigned, without setting forth any part of any record or proceeding at law or equity, or the commission or authority of the court or person before whom the perjury was committed; but nothing herein shall be construed to allow, without the consent of the accused, a part only of the record, proceeding or writing to be given in evidence on the trial of such indictment or accusation.