[cgiapp] packages autouse?
Cees Hek
ceeshek at gmail.com
Fri Jun 12 00:38:55 EDT 2009
Are you perhaps looking for Class::Autouse? Not something I would use
myself, but it may help you be more lazy in your programming...
Cheers,
Cees
On Fri, Jun 12, 2009 at 2:11 AM, Porta <julian.porta at gmail.com> wrote:
> Hey, folks.
> Question:
> I was wondering if anyone else (than me) thinks is annoying to declare the
> "use" of all the required models (objects? packages?) you're using in your
> CA app?More, when working with CAD, on each controller you need to repeat
> use MyApp::Foo; use MyApp::Bar; etc.
>
> Assuming you're working with a persistent instance (means no need to do a
> cold start of your app on each request, so no problem to load all your app
> packages in memory) why not have *something* to manage the "use" of all the
> involved packages and reduce the repeated code on each package start.
>
> Thoughts?
>
> ##### CGI::Application community mailing list ################
> ## ##
> ## To unsubscribe, or change your message delivery options, ##
> ## visit: http://lists.openlib.org/mailman/listinfo/cgiapp ##
> ## ##
> ## Web archive: http://lists.openlib.org/pipermail/cgiapp/ ##
> ## Wiki: http://cgiapp.erlbaum.net/ ##
> ## ##
> ################################################################
>
>
More information about the cgiapp
mailing list