Any section of this Code which declares that evidence obtained upon the examination of a person as a witness cannot be received against him in any criminal proceeding, shall not be construed as preventing such evidence from being proved against him in any proceeding based on a charge of perjury committed in such examination.