Hi,

I've tried looking for some info on this but couldn't find quite what I
needed.
I'm designing a site with a lot of dynamic pages. The whole site is using
modperl.
Is there anyway that I can create just one Template object, ie create the
object in the startup.pl script and use this in the rest of my code.

I've tried
$ENV{"TEMPLATE_ROOT"} = '/usr/local/bulkmail/html/lib/';

$ENV{"TEMPLATE"} = Template->new({ 
    INCLUDE_PATH  => $ENV{"TEMPLATE_ROOT"}
});

which works sometimes..... but now and again $ENV{"TEMPLATE"} seems to get
undefined and I have to restart the server!

Any help greatly appreciated.

Andy



The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged. If the reader 
of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  
If you have received this communication in error, please 
re-send this communication to the sender and delete the 
original message or any copy of it from your computer
system.


Reply via email to