LeGo has asked for the wisdom of the Perl Monks concerning the following question:
I have an array that is full of hashes. Those hashes have arrays in them.
I would like to reference that last array. I can reference the individual scalars in those arrays with the following.
Here I am referencing the 1st hash, then the cpu_burst key and thats first element. I would like to reach that whole array at once though. I would like to be able to pop, shift, run foreach loops, join, and just lots of fun things with that array but don't know how to reference the whole array at once. I have tried many things and been unsuccesful.print "$mass_info[0]{cpu_bursts}[0]";
Help with this is very much appreciated.
LeGo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array of hashes of arrays
by extremely (Priest) on Nov 10, 2000 at 10:13 UTC | |
|
(jcwren) RE: Array of hashes of arrays
by jcwren (Prior) on Nov 10, 2000 at 10:15 UTC | |
|
(tye)Re: Array of hashes of arrays
by tye (Sage) on Nov 10, 2000 at 10:13 UTC | |
by extremely (Priest) on Nov 10, 2000 at 10:37 UTC | |
by tilly (Archbishop) on Nov 10, 2000 at 17:34 UTC | |
by tye (Sage) on Nov 10, 2000 at 22:21 UTC |