Re: Best approach for loading several modules

2000-05-13 Thread Martin Wood
Thanks for the tip - its something I will definitely explore. My entire gripe with this problem has not been with performance or efficiency but with readability and easy maintainability of the many scripts in our main application - but we are getting there - and the great thing is there are so man

Re: Best approach for loading several modules

2000-05-12 Thread Drew Taylor
Martin Wood wrote: > > > but code isn't duplicated if you pre-load your modules: > > > http://perl.apache.org/guide/performance.html#Preload_Perl_Modules_at_Server > > _S > > I realise the actual code isn't duplicated - but the script itself still > needs the list of "use" directives regardles

[OT] Re: Best approach for loading several modules

2000-05-11 Thread Stas Bekman
On Thu, 11 May 2000, Martin Wood wrote: > >Please read the sections posted by Geoff and others. The *already* posted > >link: > >http://perl.apache.org/guide/config.html#The_Confusion_with_use_at_the_ > >answers your question. > > Damn mod_perl guide, much too comprehensive for its own good! :)

Re: Best approach for loading several modules

2000-05-11 Thread Martin Wood
>Please read the sections posted by Geoff and others. The *already* posted >link: >http://perl.apache.org/guide/config.html#The_Confusion_with_use_at_the_ >answers your question. Damn mod_perl guide, much too comprehensive for its own good! :) > Please invest some time into reading before crying

Re: Best approach for loading several modules

2000-05-11 Thread Stas Bekman
On Thu, 11 May 2000, Martin Wood wrote: > > but code isn't duplicated if you pre-load your modules: > > > http://perl.apache.org/guide/performance.html#Preload_Perl_Modules_at_Server > > _S > > I realise the actual code isn't duplicated - but the script itself still > needs the list of "use" d

Re: Best approach for loading several modules

2000-05-11 Thread Joshua Chamas
Martin Wood wrote: > > Thanks for the replies so far all - things are already becoming clearer. > > > If you add a "standard" module to your set, how will it affect > > existing apps if they don't directly need it or call it? Why have the > > "use" statement at all if that particular module is

Re: Best approach for loading several modules

2000-05-11 Thread Perrin Harkins
On Thu, 11 May 2000, Martin Wood wrote: > Our Apache::Registry CGIs need access to a dozen or so core modules - is > there an elegant solution to loading these without seeing a dozen or so use > statements at the head of the script? Yes. As Vivek pointed out, you can move them all into a startup

Re: Best approach for loading several modules

2000-05-11 Thread Martin Wood
> but code isn't duplicated if you pre-load your modules: > http://perl.apache.org/guide/performance.html#Preload_Perl_Modules_at_Server > _S I realise the actual code isn't duplicated - but the script itself still needs the list of "use" directives regardless of whether you pre-load them and t

RE: Best approach for loading several modules

2000-05-11 Thread Geoffrey Young
> -Original Message- > From: Martin Wood [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 11, 2000 10:38 AM > To: [EMAIL PROTECTED] > Subject: Re: Best approach for loading several modules > > > Thanks for the replies so far all - things are already > beco

Re: Best approach for loading several modules

2000-05-11 Thread Martin Wood
Thanks for the replies so far all - things are already becoming clearer. > If you add a "standard" module to your set, how will it affect > existing apps if they don't directly need it or call it? Why have the > "use" statement at all if that particular module is not being used? So pre-load all

Re: Best approach for loading several modules

2000-05-11 Thread Vivek Khera
> "MW" == Martin Wood <[EMAIL PROTECTED]> writes: MW> Our Apache::Registry CGIs need access to a dozen or so core modules - is MW> there an elegant solution to loading these without seeing a dozen or so use MW> statements at the head of the script? (We have over 100 different CGIs that The "

Re: Best approach for loading several modules

2000-05-11 Thread Jeff Beard
Checkout Apache::RegistryLoader. --Jeff At 02:23 PM 5/11/00, Martin Wood wrote: >Hi there, > >Our Apache::Registry CGIs need access to a dozen or so core modules - is >there an elegant solution to loading these without seeing a dozen or so use >statements at the head of the script? (We have over

Best approach for loading several modules

2000-05-11 Thread Martin Wood
Hi there, Our Apache::Registry CGIs need access to a dozen or so core modules - is there an elegant solution to loading these without seeing a dozen or so use statements at the head of the script? (We have over 100 different CGIs that share a common structure - it would be a nightmare maintaining