Otogi has asked for the wisdom of the Perl Monks concerning the following question:
As you can see from the structure I will always have columns and values key at the end which points to an array. I wrote a subroutine thanks to the help of the monks (see unknown number of dimensions of a multidimensional hash) to build this structure and now I am having problems accessing that data! Can you show me the way to go through the levels of the hash until I reach those keys and print or manipulate those arrays? Should i be storing those keys in an array and use those and if so how would I use them? Thanks in advance.$data{$a}{$b}{$c}{columns} = @ $data{$a}{$b}{$c}{values} = @ $data{$d}{$e}{columns} = @
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Accesing hash of unknown dimension
by friedo (Prior) on Mar 20, 2006 at 22:16 UTC | |
by Otogi (Beadle) on Mar 20, 2006 at 22:28 UTC | |
|
Re: Accesing hash of unknown dimension
by GrandFather (Saint) on Mar 20, 2006 at 22:40 UTC | |
by Otogi (Beadle) on Mar 20, 2006 at 22:43 UTC |