Well, sort of, "perish the thought" does mean "absolutely not," but you almost always use it ironically when that's exactly what you did mean.
So let's say you made the crack about what I'll be wearing at the restaurant... and I say "Hey, are you making fun of me" (but I say it with a smile so you know I'm not really mad) you say "Perish the thought!" - as in "Oh, I'd never make fun of you, my good friend" - but you're being sarcastic, in a friendly way.
And yes, people will often say "perfect" when they mean the complete opposite.
But I'm not sure what you mean by "perfect illustration."