On Wednesday 27 August 2008, Ohad Lutzky wrote:
> Ruby is a dynamic, open source programming language with a focus on
> simplicity and productivity. It has an elegant syntax that is natural
> to read and easy to write.
>
> Hello world in ruby is:
>
> print "Hello World!"
>

Actually, that will print "Hello World!" without the newline. If you want the 
newline, you need either:

{{{{{{{{
print "Hello World!\n"
}}}}}}}}

Or:

{{{{{
puts "Hello World!"
}}}}}

Regards,

        Shlomi Fish

> (or, alternatively, for interactive ruby, just "Hello World!")
>
> Anyone interested?



-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
http://www.shlomifish.org/humour/ways_to_do_it.html

Shlomi, so what are you working on? Working on a new wiki about unit testing 
fortunes in freecell? -- Ran Eilam
_______________________________________________
Haifux mailing list
[email protected]
http://hamakor.org.il/cgi-bin/mailman/listinfo/haifux

Reply via email to