Your sample code required some interpretation. Feel free to correct me.
my @_STORAGE; sub recursive_store { $query[$level] = "SELECT ..."; my $sth = $dbh->prepare($query[$level]); $sth->execute; $_STORAGE[$level]= $sth->fetchall_arrayref; $sth->finish(); } &recursive_store($level); # Example access: print _STORAGE[$level][$row][$col]; # Show what we have: use Data::Dumper; print Dumper \@_STORAGE;
In reply to Re: Two-dimensional dynamic array
by ikegami
in thread Two-dimensional dynamic array
by Peamasii
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |