From: "Alexandru E. Ungur" Date: 2006-08-13T02:48:58+09:00 Subject: Re: Beginner's question: assigning same value to many variables >>> sender: "Morton Goldberg" date: "Sun, Aug 13, 2006 at 02:18:16AM +0900" << I like it. I's a much better idea than either of mine. > > Regards, Morton > > On Aug 12, 2006, at 2:39 AM, Gennady Bystritsky wrote: > > >irb(main):001:0> a, b, c = Array.new(3) { '' } Or even a bit shorter: a, b, c = Array.new(3,'') OR a, b, c = [''] * 3 Cheers, Alex