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 regardless of whether you pre-load them
> and there doesn't seem to be an easy way to factor this common block of
> unsightly directives out into one file for use in multiple scripts that
> share the same resources.
Are you using OO perl and inheritance? I'm late on this thread, but what
about use'ing a common module which then use'es all the other modules
you need? It's well worth the effort IMHO...
--
Drew Taylor
Vialogix Communications, Inc.
501 N. College Street
Charlotte, NC 28202
704 370 0550
http://www.vialogix.com/