Every person who shall willfully swear falsely to any statement in an affidavit made by him or her, by means of which affidavit a writ of arrest or attachment shall have issued and been served by arrest or attachment, shall be deemed guilty of perjury.