Thanks. I have now changed it to include the declaration: our $template;
but it still seems to be leaking memory. I have just tried the same script but using HTML::Template and it works fine with no memory leaks. I don't however want to have to stop using my favourite templating module :-) Billy. ----- Original Message ----- From: "Perrin Harkins" <[EMAIL PROTECTED]> To: "Billy mcDonagh" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, July 28, 2003 7:28 PM Subject: Re: [Templates] Problem running under Apache::Registry > On Mon, 2003-07-28 at 14:24, Billy mcDonagh wrote: > > # Create Template object > > $template = Template->new($config); > > You should not be creating a new template object each time. Create it > once and keep it in a global. > > - Perrin > _______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
