Hm, it seems like you're actually trying to code a tree, so I think life would be easier if you simply did it that way.
There are several tree modules on CPAN, and I can recommend Tree::MultiNode which is pretty complete, flexible and easy to use.
Hope this helps, -gjb-
In reply to Re: Looping through Multi Dimensional Hashes
by gjb
in thread Looping through Multi Dimensional Hashes
by CodeJunkie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |