Jeff 'japhy' Pinyan wrote:


>   n[4..8] = n[4..8].sort


What's n here?

irb(main):007:0> n='nsfkdfjkdsgta'
"nsfkdfjkdsgta"
irb(main):008:0> n[4..8] = n[4..8].sort
TypeError: failed to convert Array into String
         from (irb):8:in `[]='
         from (irb):8
irb(main):009:0>

Tobi

-- 
http://www.pinkjuice.com/