[Templates] [PATCH] lazily load File::Temp
darren chamberlain
dlc@users.sourceforge.net
Fri, 1 Nov 2002 16:03:21 -0500
* Vivek Khera <khera@kcilink.com> [2002-11-01 15:36]:
> >>>>> "dc" == darren chamberlain <dlc@users.sourceforge.net> writes:
>
> >> If I don't do "use Template;" in my startup script, each child will
> >> get the pleasure of loading and compiling it all when the first script
> >> that uses Template gets executed.
>
> dc> Unless one of the other modules that you use in your startup script
> dc> happens to use Template, in which case you'll be OK.
>
> Well, that's still "use Template;" as far as I'm concerned.
Blah, blah, blah. :)
> I personally don't think the preload should be called automagically,
> even if it does the right thing most of the time.
Why not? When, when $ENV{'MOD_PERL'} is set and you're using TT, would
you not want Template::* loaded?
(darren)
--
Students achieving Oneness will move on to Twoness.
-- Woody Allen