The first sentence is correct. The second one is not grammatically correct. TO BE (in the infinitive - so as it is in this sentence) cannot be followed by a noun (perfection is a noun).
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.