|There's more than one way to do things
Structuring multiple CGI::Application modulesby Anonymous Monk
|on Jun 25, 2004 at 20:41 UTC
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Having nearly finished my first C::A module (it performs authentication), I'm not sure what the best way is to chain to the next C::A module. I want multiple/separate C::A modules to be able to reuse the authentication module. I haven't been able to find many examples of this type and would appreciate suggestions from other C::A users. My current thought is to create the initial script to look like the following untested code:
Then teardown() within MyAuth.pm would look like the following:
Is this a reasonable way to handle an application using multiple CAs? Will it cause memory problems (bloat)? Thanks.