2008/5/7 VICTOR GOLDBERG <vmgoldberg / verizon.net>:
> Instead of writing
>  a = %w{ ant cat dog }
>  I wrote
>  a = %{ ant cat dog }
>  puts a[2]        -->        110
>
>  I didn't find an explanation for this result in Dave Thomas' book
>  Anybody volunteers a response?

irb(main):001:0> a = %{ ant cat dog }
=> " ant cat dog "
irb(main):002:0> a.class
=> String
irb(main):003:0> a[2]
=> 110
irb(main):004:0> a[2].chr
=> "n"

Cheers

robert

-- 
use.inject do |as, often| as.you_can - without end