Next | Tricks of the Wizards | 178 |
The easiest way is with a hash table.
The keys are the state names.
The values have:
The action to perform (a coderef)
The name of the next state
Other information if appropriate
Next | Copyright © 2003 M. J. Dominus |