On Fri, 1 Sep 2000, Matt Sergeant wrote:
> On Fri, 1 Sep 2000, Stas Bekman wrote:
>
> > On 1 Sep 2000 [EMAIL PROTECTED] wrote:
> >
> > > dougm 00/08/31 22:22:16
> > >
> > > Modified: . ToDo
> > > Log:
> > > yippe
> > >
> > > Revision Changes Path
> > > 1.248 +0 -2 modperl/ToDo
> > >
> > > Index: ToDo
> > > ===================================================================
> > > RCS file: /home/cvs/modperl/ToDo,v
> > > retrieving revision 1.247
> > > retrieving revision 1.248
> > > diff -u -r1.247 -r1.248
> > > --- ToDo 2000/08/31 05:35:34 1.247
> > > +++ ToDo 2000/09/01 05:22:15 1.248
> > > @@ -68,8 +68,6 @@
> > >
> > > - should Apache::Registry use -M or (stat _)[9]?
> >
> > Doug, what about this thing? Did I miss a patch? In the guide I warn users
> > to do $^T = time, if they want to use -M and get the functionality of
> > (stat _)[9]. Is it different now?
>
> What was the original source of the $^T=time idea? Doesn't seem useful or
> relevant to me - I just use -M, and nobody has complained about that
> aspect of AxKit yet...
http://thingy.kcilink.com/modperlguide/porting/_M_and_other_time_file_tests_u.html
=head1 -M and other time() file tests under mod_perl
Under mod_perl, files that have been created after the server's
(child) startup are reported as having a negative age with C<-M>
(C<-C> C<-A>) test. This is obvious if you remember that you will get
the negative result if the server was started before the file was
created. It's normal behavior with perl.
If you want to have C<-M> report the time relative to the current
request, you should reset the C<$^T> variable just as with any other
perl script. Add C<$^T=time;> at the beginning of the script.
_____________________________________________________________________
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]