Can't tell if it's cleanly done with mixins in Moose but within an inheritance model these state changes should be simply done by manipulating @ISA such that you inherit from another class representing your state.
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re: a State machine with Roles - possible?
by LanX
in thread a State machine with Roles - possible?
by mascip
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |