Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
%HOH = ( Pegname1 => { section1 => { val1 => 'Value 1' }, section2 => { val2 => 'Value 2' } section3 => { val3 => 'Value 3' } Pegname2 => { section1 => { val1 => 'Value 1' }, section2 => { val2 => 'Value 2' } section3 => { val3 => 'Value 3' } )
Question 1: How to travel in the hash which is shown in the example ?
Question 2: How to add the above key in HOH :-Pegname2 => { section1 => { val1 => 'Value 1' }, section2 => { val2 => 'Value 2' } section3 => { val3 => 'Value 3' }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hash inside hash inside hash
by wfsp (Abbot) on Apr 21, 2006 at 06:17 UTC | |
|
Re: hash inside hash inside hash
by bowei_99 (Friar) on Apr 21, 2006 at 06:08 UTC | |
|
Re: hash inside hash inside hash
by nevyn (Monk) on Apr 21, 2006 at 21:34 UTC |