Computer Science Canada

hello world

Author:  dirwin [ Thu Mar 24, 2005 8:29 pm ]
Post subject:  hello world

hi
sorry i got another question sorry i just started working with ruby
i ran it and did the first code in the book which is a script that prints the words hello world on the screen Smile well atleast it is suppost to again sorry
i have inclosed a screeny of my problem and the page of the book i copyed it outa. what am i doing wrong?

Author:  wtd [ Thu Mar 24, 2005 8:33 pm ]
Post subject: 

They can't be blamed for saying that is the easiest way to run Ruby code interactively, because at the time it likely was. Nowadays I'd suggest using irb.

code:
C:/> irb
irb(main):001:0> puts "Hello world"
Hello world
=> nil
irb(main):002:0>

Author:  dirwin [ Thu Mar 24, 2005 8:51 pm ]
Post subject: 

omg it worked thank you so much Smile
my first code woohoo

Author:  wtd [ Thu Mar 24, 2005 9:02 pm ]
Post subject: 

Congratulations. Smile


: