in reply to Re: incrementing array name
in thread incrementing array name

Close, but no cookie ;-) I think you want something like this:

sub seperate_data { push(@{$arrays}, [split(/ /,$data[$a])]); }
since otherwise you'll end up with a long list rather than a list of lists.

Hope this helps, -gjb-

Replies are listed 'Best First'.
Re: Re: Re: incrementing array name
by Lhamo_rin (Friar) on Jun 23, 2003 at 18:42 UTC
    When I attempt to: print "$arrays[0][0]"; I'm getting an error that I have an uninitialized value in that line. Any suggestions? Llamo_rin
Re: Re: Re: incrementing array name
by Skeeve (Parson) on Jun 24, 2003 at 06:32 UTC
    No cookie too ;-) because you missed my second mistake
    .oO( I should never post untested code. At least I'm not Micro$chrott )
    which is: $array->[0][0] will give the first element of the first array...