Karl von Laudermann
2/22/2008 6:47:00 PM
On Feb 22, 1:26 pm, Steve <stevec...@btinternet.com> wrote:
> Ok so I just got myself Chris Pines book and started with the
> questions in it and the first short prog I type in SciTE is
>
> puts 'Hi, what\`s your first name? '
> name = gets
> puts 'your name is ' + name
I know nothing about SciTE or RDE, so I'm assuming the problem has to
do with how you're running your program from those editors. Try this:
save your 3-line program above into a file called hello.rb. Then, at
the command line, navigate to the directory containing that file, and
type:
> ruby hello.rb
I bet your program will work properly. As to how to run it properly
from SciTE or RDE, I have no idea.