Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi everybody I have a program with an output like this:
I'd like to read it into array in arrays but the problems are: 1. I dont know the structures depht (which is variable) 2. I dont know how to retrieve the information once stored because of 1. Any ideas?(root (class living_thing (spec human (prop has_legs)) (spec bird (prop has_wings))))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: recursive algorithm for nested data structures
by ikegami (Patriarch) on Aug 19, 2009 at 19:36 UTC | |
|
Re: recursive algorithm for nested data structures
by JavaFan (Canon) on Aug 19, 2009 at 20:54 UTC | |
|
Re: recursive algorithm for nested data structures
by tilly (Archbishop) on Aug 19, 2009 at 20:46 UTC | |
|
Re: recursive algorithm for nested data structures
by rowdog (Curate) on Aug 20, 2009 at 15:46 UTC |