http://www.perlmonks.org?node_id=1042063


in reply to Re: For loop: Hash
in thread For loop: Hash

This is a great answer. To expand on it, the OP mentions that he is new to Perl, and perhaps an early programmer (or not, I don't know). Once you start using this layout, and you are finding that you need more logic and functionality against a Router, or a Peer, then it will be easy to break that part of the structure out into a class of its own.