Every person who shall, by the offer of any valuable consideration, attempt, unlawfully and corruptly, to procure any other person to commit wilful and corrupt perjury as a witness in any cause, matter, or proceeding in or concerning which such other person might by law be examined as a witness, shall, upon conviction, be punished by imprisonment in the penitentiary not exceeding five years.