I think it depends on what you mean by perfect blood sugars ? Do you have realistic goals ? Do you do frequent BG tests ? Do you do carb counting and log your foods, then test 2-3 hours later to see if you matched your food and insulin ?
As for what to eat, I learned a lot from reading the book Eat to Live, by Joel Fuhrman. I don't agree with all of it, but my key learning was to think more about the nutritional value of food, and to choose more unprocessed/lower carb/'whole' foods and healthy fats. When choosing foods, I ask myself how nutritious is it, and how well can I match my insulin to it, to avoid a high spike. That took a lot of experimenting, measuring and logging. Have realistic expectations, this takes time !
Having a goal of 'perfect' is just a setup for failure. Strive for continuous improvement, and learn from the times you miss your target - what can you do different next time. And accept that sometimes, you do everything 'right', and your BG isn't where it 'should' be.