From: Ed Hardy Date: 2008-11-08T04:02:36+09:00 Subject: Re: Another require question Let's assume I know nothing. Though I thought I understood this dilemma, I'm now lost. I've been studying like crazy, bought a book, and even have even written a program that pumps out html pages with webrick, but I am still hung up on some basic items. For instance, this line fails: puts math.sqrt(234) it outputs this error: "undefined local variable or method `math' for main:Object (NameError)" this line fails: f= file.open('c:\cher.bat') # similar error message as above these lines run OK: f= open('c:\cher.bat') d= f.read() puts d f.close() I installed 1.8.6 (path level 111) on XP Windows with the one-click installer. -- Posted via http://www.ruby-forum.com/.