Robert Klemme
3/6/2006 4:41:00 PM
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