As for your problem, couldn't you just serialize your DFA::Simple object's state to storage between web requests?
That's not the problem. The problem is that DFA::Simple wants to parse text on a filehandle to trigger events. I don't have a text file full of events, I have a user on the other end of an HTTP connection!
-sam
In reply to Re^2: Are state machines just for parsing?
by samtregar
in thread Are state machines just for parsing?
by samtregar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |