Summary
Code generation: write boring repetitive code once
State machines: a useful abstraction
State machines and code generation work well together
You can use both with Perl with ease
Questions?