No big shakes in Perl to do this, but you need to read up on references (perldoc perlref and perldoc perlreftut; in hard copy, I recommend Efficient Perl Programming). What you (probably) want is an *array* of references to arrays.
my @list_of_arrays; foreach (Thing) { # get array from thing push @list_of_arrays, \@array; } # to get at the arrays foreach my $array (@list_of_arrays) { # $array is a reference to an array foreach (@$array) { # etc } }
Philosophy can be made out of anything. Or less -- Jerry A. Fodor
In reply to Re: Dynamic array names
by arturo
in thread Dynamic array names
by CiceroLove
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |