We don't bite newbies here... much | |
PerlMonks |
Re: Re: CGI Designby Fletch (Bishop) |
on Apr 07, 2002 at 00:33 UTC ( [id://157207]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|