Ok, but I'm pretty sure that perjury is generally understood as being under oath and you aren't under oath when the judge is first reading you the charges against you and offering you the recourse of a public defender.
Although I suppose the court could hold you in contempt if it found you had the means and said you didn't. But I've never seen or heard of anyone being means checked.
Is your comment based on experience? It seems wrong.
All the search results (Findlaw, Avvo lawyer answers, etc) seem to be saying that you have to qualify financially, you have to submit your income and assets of your household under penalty of perjury (signed statement, not oath) and you may also be asked to get quotes from lawyers to compare against your means. I think the most you could say is that courts are so overloaded you might get away with perjury.
I qualified my original statement by saying "I think this depends on the state". Although now that I think of it, the laws in the states I know also say you can be made to pay back the costs if it is determined you could afford an attorney, however I have never seen anything done about it.
So I think you're right, it is perjury that doesn't really get anything done about it - I think based on the idea that if you had the money to get an attorney you would do it so anyone saying they can't get an attorney doesn't have the money.