Don't ask to ask, just ask | |
PerlMonks |
Re: Web presentation patterns, MVC, and reinventing the wheelby dragonchild (Archbishop) |
on Jan 30, 2003 at 20:36 UTC ( [id://231430]=note: 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 Section
Seekers of Perl Wisdom
|
|