in reply to General pattern for interactive text-mode script?
Then you write a small dispatching program that walks through the data structure, prints the prompt, analyses the results, makes a transition into the next state and calls your callback (maybe in a different order).
Searching cpan for state might give some interesting results, chances are that somebody already implemented something similar.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: General pattern for interactive text-mode script?
by Anonymous Monk on Jul 03, 2008 at 18:23 UTC | |
by moritz (Cardinal) on Jul 03, 2008 at 18:39 UTC | |
by starbolin (Hermit) on Jul 03, 2008 at 23:13 UTC |