Yes, one has to be absolutely perfect to go to Heaven. One must be absolutely sinless.
That's the bad news.
The good news is... Jesus.
Romans 4:24-25
24But for us also, to whom it shall be imputed, if we believe on him that raised up Jesus our Lord from the dead;
25Who was delivered for our offences, and was raised again for our justification.
Romans 5:18
Therefore as by the offence of one judgment came upon all men to condemnation; even so by the righteousness of one the free gift came upon all men unto justification of life.
2 Peter 1:4
Whereby are given unto us exceeding great and precious promises: that by these ye might be partakers of the divine nature, having escaped the corruption that is in the world through lust.
Jesus is our justification.
Jesus is our righteousness.
Jesus is our propitiation.
Jesus is our completion.
Jesus is our holiness.
Jesus is our rest.
Jesus made us sons of God.
Jesus is our sanctification.
Jesus is our... everything.
If HE dwells in us and we are one with Him... all that He is by nature is transfered to us by virtue of the cross... though we be absolutely undeserving.
Every false religion on earth has a list of things one must DO to be perfect and experience the ultimate state of existence (salvation). Biblical Christianity is the ONLY religion that teaches... you can't. Give it up. You can't make it to Heaven. You can't act right enough, dress right enough, know enough, believe right enough, or build enough to get to Heaven. NOTHING you do can get you to Heaven. In fact, you at your BEST will not please God. Why? Because it's still YOU. You have to DIE.
You have to be crucified with Christ, living only because He now lives in you. Living your life in this physical world through the power of the indwelling Jesus Christ. Now... He imparts all that He is freely to you... that you might be justified before a Holy God and enter Heaven. In Christianity it's not about what you do for God. It's about what God has done for you.
Those who are "hidden in Christ" are therefore perfect, because He is perfect. Oh, I know they don't always "act perfect". But they are perfect by virtue of the new nature of Jesus Himself (the Holy Spirit), who is dwelling within them.