in reply to Re^4: Are state machines just for parsing?
in thread Are state machines just for parsing?

One thing I'll note is that use strict isn't used in DFA::Simple. You may want to give it a treatment of that before actually using it. You'd want to rescind it when it calls your functions so that you can pass in function names instead of hard references.