murugu has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
Is there any book which gives idea about complicated data structures such as producing hashes of hashes of hashes...etc.
Even though i have worked in perl for past 6 months this is the first time handling complicated data structures.
My work is to convert,
a b c e f g h i
the levels are identified by the number of space in front of the text.
I want to get the output 'h' when i print $var->{e}->{f}->{g};
Any suggestions are welcome.
Many thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: complicated data structures
by ctilmes (Vicar) on Aug 06, 2004 at 10:50 UTC | |
|
Re: complicated data structures
by deibyz (Hermit) on Aug 06, 2004 at 11:06 UTC | |
|
Re: complicated data structures
by hmerrill (Friar) on Aug 06, 2004 at 11:20 UTC | |
|
Re: complicated data structures
by dsb (Chaplain) on Aug 06, 2004 at 11:40 UTC | |
|
Re: complicated data structures
by davido (Cardinal) on Aug 06, 2004 at 15:29 UTC | |
|
Re: complicated data structures
by pingo (Hermit) on Aug 06, 2004 at 13:54 UTC |