On Sat, 2 Sep 2000, Stas Bekman wrote:

> On 2 Sep 2000, Andreas J. Koenig wrote:
> 
> > >>>>> On Sat, 2 Sep 2000 11:43:14 +0200 (CEST), Stas Bekman <[EMAIL PROTECTED]> said:
> > 
> >   > Especially when the guide endorses playing with $^T, when one wants to get
> >   > a correct -M relative to the request start time and not the process start. 
> > 
> > Yes, but please change the recommendation to use local($^T) like or
> > all those funny global variables. I'm embarrassed I never noticed that
> > before.
> 
> Yup, a good spot, thanks Andreas! I've fixed that.

Unfortunately I don't know what to do about Doug's suggestion:

  sub Apache::PerlBaseTime::handler {
    $^T = shift->request_time;
    return Apache::Constants::DECLINED;
  }

It resets the time for the whole process. 

  sub Apache::PerlBaseTime::handler {
    local $^T = shift->request_time;
    return Apache::Constants::DECLINED;
  }

wouldn't affect anything.

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://jazzvalley.com
http://singlesheaven.com http://perlmonth.com   perl.org   apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to