Why only 32 levels of undo, especially if you're using an array as a stack? Zero, one, or infinite levels of undo is probably the best way to go. Check out the "command" design pattern for ideas. You could also easily add redo.
In reply to Re: Using perl to teach programming
by t'mo
in thread Using perl to teach programming
by Falkkin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |