Luke Kanies <luke / madstop.com> wrote:
> On Aug 20, 2006, at 12:26 AM, Andy Black wrote:
>
>> Hi list,
>>
>> I need to create a different array each time that I am going through
>> a loop.
>> I wonder how I can assign different names to the arrays based on the
>> iteration count.
>> For example first time that I go through the loop I want to create an
>> array named: a1, second one, a2 and so on.
>> Thanks a lot for your help.
>
> 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".

Kind regards

    robert