in reply to how to loop through the hash of hash arrays
See Access and Printing of a HASH OF HASHES in perldoc perldsc. That being said it almost feels like there's a bit of an XY problem and you might could look into Graph or the like (e.g. GraphViz and have it draw a picture for you).
Edit: Tweaked wording.
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|