Hard to comment without knowing the full context of your system but it sounds like a Finite-state machine. If you haven't coded a finite state machine in Perl before, this article may be helpful.
In reply to Re: Is this a simple, robust, and maintainable design?
by eyepopslikeamosquito
in thread Is this a simple, robust, and maintainable design?
by neodon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |