From: Kaye Ng on
Difference between puts and print, please? Thanks much!
--
Posted via http://www.ruby-forum.com/.

From: Ben Bleything on
On Jun 7, 2010, at 11:30 PM, Kaye Ng <sbstn26(a)yahoo.com> wrote:
> Difference between puts and print, please? Thanks much!

Briefly, puts adds a newline at the end but print does not. Try them both, the difference should be clear.

Ben

From: Rein Henrichs on
On 2010-06-07 23:30:40 -0700, Kaye Ng said:

> Difference between puts and print, please? Thanks much!

All of these questions (and more) can be answered by reading this
excellent (and free) guide: http://ruby-doc.org/docs/ProgrammingRuby/

--
Rein Henrichs
http://puppetlabs.com
http://reinh.com