It sounds like you're reinventing POE::NFA, which dispatches events to different handlers depending on a session-scoped state.
It's hard to pinpoint a proper solution since you're asking about a specific technology rather than describing the problem to be solved.
In reply to Re: Cutting repetition in POE coding
by rcaputo
in thread Cutting repetition in POE coding
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |