Or going in an OOPy direction from the multiple sub sugguestion, you could implement the different behaviors in different classes. You use a factory method to create an instance of the apropriate class based on what action is to be taken (ConfirmClass, CommitClass) and then call the handleRequest method (probably passing along the contents of $cgi->params or what not).
In reply to Re: Re: CGI Design
by Fletch
in thread CGI Design
by Dogma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |