You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by H Jayakumar <HJ...@novell.com> on 2003/02/03 11:57:52 UTC

$^T

hi all,

   In windows mod_perl-beta2 
    
        print $^T; 

   returns the same value again and again,  Also

    my $t = $^T;
    print $t;
 
    does not help 

   any comments ?

Thanks,    

  

Re: $^T

Posted by Stas Bekman <st...@stason.org>.
Perrin Harkins wrote:
> H Jayakumar wrote:
> 
>>    In windows mod_perl-beta2             print $^T;
>>    returns the same value again and again
> 
> 
> That is correct behavior.  The $^T variable contains the time that the 
> current program (i.e. apache) started running.   If you want the current 
> time, use time() instead.

If the beginning of the request is good enough, $r->request_time is better, as 
it saves a system call.

http://perl.apache.org/docs/2.0/user/handlers/http.html#PerlPostReadRequestHandler

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: $^T

Posted by Perrin Harkins <pe...@elem.com>.
H Jayakumar wrote:
>    In windows mod_perl-beta2 
>     
>         print $^T; 
> 
>    returns the same value again and again

That is correct behavior.  The $^T variable contains the time that the 
current program (i.e. apache) started running.   If you want the current 
time, use time() instead.

- Perrin