From: Trans Date: 2009-08-24T06:09:09+09:00 Subject: Re: 1.8.7 String#lines keeps new-line chars (say it ain't so in 1.9) On Aug 23, 8:50 am, Gregory Brown wrote: > On Sat, Aug 22, 2009 at 11:46 AM, Intransition wrote: > > Ruby 1.8.7 p72 > > >  >> "A\nB\nC".lines.to_a > >  => ["A\n", "B\n", "C"] > > > Please, tell me that's a mishap, and not how 1.9 works. I'd expect: > > >  >> "A\nB\nC".lines.to_a > >  => ["A", "B", "C"] > > I know I'm going to be accused of bullying you again, but... > Install the latest 1.9.1 and try it yourself (or if you feel fancy, > the 1.9.2 preview). > > These aren't questions irb can't answer for you. Looking it up isn't the main issue mate. It was the "wherefore?" that I pondered upon finding it to be the case. > Alternatively, try out ruby-versions:http://ruby-versions.net/ Cool, thanks.