But the way I'm going, the entire script could look like this:
use MyModule; $myobject = MyModule->new( lots_of_config => 'goes here' # etc etc etc ); $myobject->go();
and the object would just figure out what mode it was in from the query string and do ... everything. The object will have its own CGI object, its own HTML::Template object and so on.
For some reason that kind of feels weird to me. When is a module too minimal? When should some of the complexity remain in the script?
($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: When is a module too minimal?
by hv (Prior) on Jul 19, 2006 at 11:18 UTC | |
|
Re: When is a module too minimal?
by gellyfish (Monsignor) on Jul 19, 2006 at 11:15 UTC | |
|
Re: When is a module too minimal?
by rodion (Chaplain) on Jul 19, 2006 at 12:19 UTC | |
|
Re: When is a module too minimal?
by philcrow (Priest) on Jul 19, 2006 at 12:42 UTC | |
|
Re: When is a module too minimal?
by Ovid (Cardinal) on Jul 19, 2006 at 13:56 UTC | |
|
Re: When is a module too minimal?
by Ieronim (Friar) on Jul 19, 2006 at 13:03 UTC | |
|
Re: When is a module too minimal?
by Fletch (Bishop) on Jul 19, 2006 at 12:15 UTC | |
|
Re: When is a module too minimal?
by Arunbear (Prior) on Jul 19, 2006 at 21:17 UTC | |
|
Re: When is a module too minimal?
by bsb (Priest) on Jul 20, 2006 at 02:30 UTC |