After a whole ordeal trying to curse the Jews, Bilam finally ends up blessing the Jews instead. So what does a person whose power lies in his word utter, after so much suspense? He says “How good are your tents, O Yaakov, your dwelling places, Israel” (24:5). Is it Yaakov or Israel? Is it the tents or the dwelling places (assuming they’re different) that are good? It’s a pretty ambiguous statement for someone presumably articulate.
To understand this, we need to analyze the context of the three blessings he imparted in the following Pessukim (verses): 1) You should stay near water (reference to Torah), 2) G-d will help you crush your oppressors, and 3) Those that bless you will be blessed, and those that curse you will be cursed. It seems that there is a natural progression throughout these blessings: If we 1) stay close to the Torah, 2) G-d will help us defeat our enemies, and 3)we will be blessed upon blessings. That’s why the blessings start with the statement that it’s all because of our homes (tents), that leads to our communities (dwellings), from Yaakov as an individual to Israel as a nation. Conclusion: If we introduce the Torah in our own controlled-environment homes, it will not only help us and our communities, it will also lead to the many blessings that follow.