I was wondering if anyone could help out a newbie in need. So I've just
started learning Ruby, my first programming language. I've been going
through this online book, and when running one of the programs from the
book, I've been encountering a strange error. The program can be found
here (it's the one that writes numbers out in English), or you can check
out the attachment, where I've included it:

http://pine.fm/LearnToProgram/?Chapter=08

I was running it unchanged from the website. I've tested it out on three
computers, all Macs, but I always get this error:

numwrite.rb:1: syntax error
    #  Now here- write*100  #  Subtract off those hundreds.ite
out?ut.n',
                             ^

The line of code it shows is gibberish, it seems to be made up of
several lines of code mixed together. I've tested it on a Powerpc eMac
running OS X 10.2 and Ruby 1.8.2, an Intel Macbook running 10.4 and Ruby
1.8.6, and a Powerpc iBook running 10.4 and (I think) Ruby 1.8.4. All of
these give me something similar to this error.
Does anybody know what is going on, and can help, please?

Attachments:
http://www.ruby-forum.com/attachment/1085/numwrite.rb

-- 
Posted via http://www.ruby-forum.com/.