Using Redhat Linux, I am learning Ruby from:
http://www.math.sci.hokudai.ac.jp/%7Egotoken/ruby/ruby-uguide/uguide04.html

I tried the following:

$ruby -r 'irb/main' -e IRB.start
irb(main):001:0> word = 'fo' + 'o'
"foo"
irb(main):002:0> word = word * 2
"foofoo"
irb(main):003:0> word(0)
NameError: undefined method `word' for #<Object:0x40183ed4>
(irb):3:in `irb_binding'
irb(main):004:0>

According to the user guide, word(0) should be:
102            # 102 is ASCII code of `f'

What's happening?
Dat
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com