Peamasii has asked for the wisdom of the Perl Monks concerning the following question:
To start with, I need to know how to store an array of values in another array, in code like this:
I'm not sure what syntax to use for storing and then retrieving the arrays returned by the while condition. The purpose is then to be able to go:sub recursive_store { $query[$level] = "sql code here"; $query[$level]->execute; while((_STORAGE[$level])=$query[$level]->fetchrow_array) { print _STORAGE[$level][0]; } } &recursive_store($level);
Basically I need to access an array of arrays but the samples I've seen weren't really clear on how to achieve that.print _STORAGE[$anylevel][$anyindex];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Two-dimensional dynamic array
by ccn (Vicar) on Sep 30, 2004 at 19:51 UTC | |
|
Re: Two-dimensional dynamic array
by ikegami (Patriarch) on Sep 30, 2004 at 20:17 UTC | |
by Peamasii (Sexton) on Oct 01, 2004 at 07:54 UTC | |
by ikegami (Patriarch) on Oct 01, 2004 at 16:05 UTC |