From: Tobias Reif Date: 2002-01-24T18:52:06+09:00 Subject: Re: Array.last Weirdness Guy N. Hurst wrote: > I use array[-1] .. so instead of array = ["hello"] array.last += " world" puts array one could write irb(main):001:0> a = ['foo','bar'] ["foo", "bar"] irb(main):002:0> a[-1]+='boozig' "barboozig" irb(main):003:0> a ["foo", "barboozig"] While I know why the first attempt doesn't work, it would be nice if it would work. Is Array#last= all that's needed? Tobi -- http://www.pinkjuice.com/