rjl has asked for the wisdom of the Perl Monks concerning the following question:
I need to turn this into dotted notation.$VAR = { 'A' => { 'B' => { 'C' => {}, 'D' => {} }, 'E' => { 'F' => { 'G' => {}, 'H' => {} }, 'I' => {} } }, 'J' => { 'K' => { 'L' => {}, } } }
The structure can be arbitrarily deep. Each level can have an arbitrary number of elements.A A.B A.B.C A.B.D A.E A.E.F A.E.F.G A.E.F.H A.E.I J.K J.K.L
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: walking a hash
by JavaFan (Canon) on May 04, 2010 at 02:18 UTC | |
|
Re: walking a hash
by GrandFather (Saint) on May 04, 2010 at 05:17 UTC | |
by rjl (Initiate) on May 04, 2010 at 17:41 UTC | |
by GrandFather (Saint) on May 04, 2010 at 21:12 UTC | |
|
Re: walking a hash
by ikegami (Patriarch) on May 04, 2010 at 02:33 UTC |