* Jurriaan van der Laan <[EMAIL PROTECTED]> [2002-07-04 09:20]:
> Hello,
> 
> I've written a mod_perl handler in apache using the template-toolkit.
> everthing seems to work fine.. 
> 
> However when I do something like this:

[-- snip --]

> What I notice that unless I touch my perl script every the time
> (mod_perl will "recompile" it) the date om my web-page doen't change.
> (after a few requests.... probably the number of apache childs)

You haven't written it in such a way that the value can change; you are
assigning a static string as a value.  You need to do something like:

  use POSIX qw(strftime);
  $GlobalData{querydata}{date} = sub { strftime("%a %b %e %H:%M:%S %Z %Y", localtime) 
};

You won't have to change your template at all, by the way.

(darren)

-- 
How you look depends on where you go.


Reply via email to