From: Peter Hickman Date: 2011-11-01T06:17:05+09:00 Subject: Re: single vs. double quotes (was: Anything like FS in Ruby?) Because that is how Ruby (and also Perl) work. Strings inside ' are litteral and strings inside " are interpolated. This might sound a little rude but have you read any books on Ruby or worked through any of the tutorials? On 31 October 2011 21:12, Wayne Brissette wrote: > Thanks everybody. It's just a matter of rethinking things, but the Justin you were spot on. The record separator was exactly what I was thinking about (or something similar actually). > > I figured out why my parsing of data wasn't going so well. Maybe somebody can point me to better documentation on why this happens. > > If I do this: > > myarray = somestring.split('\n\n') > > My array ends up with a single item > > If I do this: > > myarray = somestring.split("\n\n") > > my array ends up with the breaks exactly where I expected them and I end up with multiple items in my array. > > so, why is " not equal to ' in this instance? > > Thanks, > Wayne > > >