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 <[email protected]> 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://www.erlbaum.net/mailman/listinfo/cgiapp ## > ## ## > ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## > ## Wiki: http://cgiapp.erlbaum.net/ ## > ## ## > ################################################################ > > ##### CGI::Application community mailing list ################ ## ## ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ## ## ## ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## ## Wiki: http://cgiapp.erlbaum.net/ ## ## ## ################################################################
