Learn Hebrew/Reader/Pharaoh recounts his dream
Pharaoh recounts his dream
Recognize a noun with a prefixed preposition and a pronominal suffix.
Infinitive construct with preposition
בַּחֲלֹמִי is the noun חֲלוֹם with the preposition בְּ and the first-person suffix י: 'in my dream'. לָרֹעַ is the noun רֹעַ with the preposition לְ, 'for ugliness'; it is not an infinitive. Davidson notes that the infinitive construct also takes prepositions, but these two forms are nouns.
A noun with a preposition
לָרֹעַ is a noun, not an infinitive: the ל marks the phrase 'for ugliness'.
Preposition on a noun
The form בַּחֲלֹמִי is a noun with the preposition בְּ and a pronominal suffix. It means 'in my dream'.
Check
What does the form לָרֹעַ express?
What is the function of the prefix בְּ in בַּחֲלֹמִי?