Commentary for Kiddushin 60:3
ת"ר (דברים יא, יח) ושמתם סם תם נמשלה תורה כסם חיים משל לאדם שהכה את בנו מכה גדולה והניח לו רטיה על מכתו ואמר לו בני כל זמן שהרטיה זו על מכתך אכול מה שהנאתך ושתה מה שהנאתך ורחוץ בין בחמין בין בצונן ואין אתה מתיירא ואם אתה מעבירה הרי היא מעלה נומי
What is meant by 'with their enemies in the gate'? - Said R'Hiyya B'Abba, Even father and son, master and disciple, who study Torah at the same gate<span class="x" onmousemove="('comment',' I.e., at the same academy. Alternatively, in the same subject. cvu cvt');"><sup>7</sup></span> become enemies of each other; yet they do not stir from there until they come to love each other, for it is written, [Wherefore it is said it, the book of the wars of the Lord,] love<span class="x" onmousemove="('comment',' , connected by a play on words with , to love.');"><sup>8</sup></span> is be-sufah;<span class="x" onmousemove="('comment',' Num. XXI, 24.');"><sup>9</sup></span>
Daf Shevui to Kiddushin
I do not believe that this source is saying that those who study Torah will have no sexual urges—rabbis do not seem to believe this at all. Rather, study of Torah, of how one is to act in the world, reflecting on what it means to be human, all of this should, indeed must, lead to an inner transformation that allows us to have control over our lives. The baraita reads the famous verse from Genesis, stated to Adam after he ate the fruit of the tree (and the subject of one of my favorite books, East of Eden). Sin crouches at the door, but with proper reflection on Torah, humans can learn to act in a decent, moral way.