From: "Joseph E. Savard" Date: 2010-07-22T22:58:04+09:00 Subject: Re: Two Question 1- lit·er·al n accordance with, involving, or being the primary or strictmeaning of the w ord or words; not figurative ormetaphorical: the literal meaning of a word. There for a RUBY literal String is as follows: "this is a string, literally" http://ruby-doc.org/docs/ProgrammingRuby/html/language.html 2 - irb(main):005:0> 5.times { print " print output no newline " } print output no newline print output no newline print output no newline print output no newline print output no newline => 5 irb(main):006:0> 5.times { puts " puts output has a newline " } puts output has a newline puts output has a newline puts output has a newline puts output has a newline puts output has a newline => 5 > From: Amir Ebrahimifard > Reply-To: > Newsgroups: comp.lang.ruby > Date: Thu, 22 Jul 2010 17:59:45 +0900 > To: ruby-talk ML > Subject: Two Question > > Hi everybody > I have two question : > 1 - What is the exact meaning of Literals in Ruby ? > 2 - What is the use of "puts" in Ruby and what is diffrence between > "puts" and "print" ? > -- > Posted via http://www.ruby-forum.com/. >