First, 'perfect' is a personal judgment, not an objective quality of things.
Second, in the Tanakh we see the concept of Yahweh grow from being one of the many tribal gods of the Canaanite pantheon to the monogod of Isaiah; there isn't one god in the bible, there are various versions. (And in the NT we get a completely revised version of God again, which by the fourth century CE has become the Trinity.)
Third, in the Tanakh God orders invasive war, massacres of populations, mass rapes, sets out the rules of slavery, treats women as property, likes human sacrifices, is the archetype of religious intolerance and so on, moral qualities which in my view are repulsive.
So I wouldn't look in the bible for a perfect god. I'd look at self and society and work out a personal morality.