From: Andy Black Date: 2006-08-21T05:17:02+09:00 Subject: Re: how to create multiple different arrays using a loop Luke Kanies wrote: > On Aug 20, 2006, at 10:25 AM, Robert Klemme wrote: > >> Luke Kanies wrote: >>> By far the easiest way to do this is to stick them in a hash: >> >> I'd say Jeffrey's approach (i.e. stick those arrays into an array) >> is by far >> the easiest and hassle free approach. Your approach has the >> disadvantage >> that it will loose creation order because alphanumeric sorting of >> names like >> "a1", "a2" etc. will only work until "a9". > > Sure; if you need to be able to sort based on name, use an array, I > suppose. OP implied naming was more important than ordering, which > usually means a hash, but either is sufficient, clearly. Thanks to all of you...I used your suggestions and my code is working fine -- Posted via http://www.ruby-forum.com/.