From: Love U Ruby Date: 2013-03-13T05:40:54+09:00 Subject: Re: Confusion with Strings @Scott. yes I do here it ia: >> s = "hello" => "hello" >> s["e"] = "u" => "u" >> s => "hullo" The answer to the line **a too-high or too-low numerical index ** >> str = 'aaa' => "aaa" >> str[-4] = "x" IndexError: index -4 out of string from (irb):57:in `[]=' from (irb):57 from C:/Ruby193/bin/irb:12:in `
' >> str[-5] = "x" IndexError: index -5 out of string from (irb):58:in `[]=' from (irb):58 from C:/Ruby193/bin/irb:12:in `
' >> str[4] = "x" IndexError: index 4 out of string from (irb):59:in `[]=' from (irb):59 from C:/Ruby193/bin/irb:12:in `
' Actually that word `too big` and `too small` made me to think too much.. lollzzzzzzz. Guys if my understanding with the line is wrong then please correct me. -- Posted via http://www.ruby-forum.com/.