The following message is a courtesy copy of an article that has been posted to comp.lang.misc as well. "Dat Nguyen" <thucdat / hotmail.com> writes: > That's it! > What's a relief! > > On WIN/NT DOS, after: > C:\Program\Ruby>ruby sample\eval.rb > You might want to add '-e0' to the command line. That makes the termination slightly tidier. > I tried: > ruby>print "Hello World" > > It yields: > Hello Worldnil > > I've been through this kind of thing in Perl, the 'nil' is the value > returned by the whole print statement, right? That's it! If you'd just typed ruby> "hello world" It would have said "hello world". There's normally no need for print or puts statements, the main loop of eval inspects and prints the result of the expression you type. Regards Dave