good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
It looks like you have some sort of event-driven architecture. My first instinct is to use callbacks. Something like:
Then, you work some neat mechanism of registering the callbacks. They can even be the result of can (but you have to have an appropriate object to call it on) or method names (to be called on appropriate objects, presumably with can). Of course, using CGI::Application is good cause it encapsulates the annoying work for you. :-) ------ Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement. In reply to Re: Web presentation patterns, MVC, and reinventing the wheel
by dragonchild
|
|