From: Robert Klemme Date: 2006-03-07T01:43:40+09:00 Subject: Re: Array range. Paul Tsung wrote: > Hi, > > I have a question about assigning the contents of a list of variables > with names like title1, title2, title3 up to title20 to an array. > > Currently, this is the code that I use. > > title1 = ruby > title2 = rails > title3 = typo Where exactly is the array in your example? I'm a bit confused. Do you want this? >> title = %w{ruby rails typo} => ["ruby", "rails", "typo"] Kind regards robert