From: Gregory Brown Date: 2007-06-30T23:15:08+09:00 Subject: Re: is it bug? for On 6/30/07, Axel Etzold wrote: > > Well, yours isn't correct. On 1.8: > > > > >> "a\nb\nc\n".to_a > > => ["a\n", "b\n", "c\n"] > > > > The code you mentioned is just: > > > > ["a\nb\nc\n"] > Ok, but do you know that that's what the OP wanted ? > Best regards, I can only assume so seeing as this is the behaviour of String#to_a in 1.8 and it does not exist in 1.9 But no, he'd need to answer that. Typically if you want to do that kind of manipulation, Array() is better, anyhow. >> Array([1,2,3]) => [1, 2, 3] >> Array("foo") => ["foo"]