Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Does $^T still work ?

Reply
Thread Tools

Does $^T still work ?

 
 
Nick Weavers
Guest
Posts: n/a
 
      04-16-2004
$BASETIME (or $^T) seems to have stopped working for me. I have tested it on
RH linux 9.0 with perl 5.8.0 and under AIX 5.1 with perl 5.6.0 and it
returns nothing.

Does perl have to be compiled with any options enabled for this builtin var
to work?

Nick.


 
Reply With Quote
 
 
 
 
J. Gleixner
Guest
Posts: n/a
 
      04-16-2004
Nick Weavers wrote:
> $BASETIME (or $^T) seems to have stopped working for me. I have tested it on
> RH linux 9.0 with perl 5.8.0 and under AIX 5.1 with perl 5.6.0 and it
> returns nothing.
>
> Does perl have to be compiled with any options enabled for this builtin var
> to work?
>
> Nick.
>
>


BASETIME is defined in English.pm.

use English;
print $BASETIME;


 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a
 
      04-16-2004
On Fri, 16 Apr 2004, Nick Weavers <(E-Mail Removed)> wrote:
> $BASETIME (or $^T) seems to have stopped working for me. I have tested it on
> RH linux 9.0 with perl 5.8.0 and under AIX 5.1 with perl 5.6.0 and it
> returns nothing.
>
> Does perl have to be compiled with any options enabled for this builtin var
> to work?


Following works for me:

#!/usr/bin/perl -w
sleep 5;
print "This script took ". (time - $^T) .
" seconds in Perl $] on $^O\n";

Depending upon the system, returns one of:
This script took 5 seconds in Perl 5.006001 on linux
This script took 5 seconds in Perl 5.008 on linux

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sort list doesnt work, key=str still doesnt work notnorwegian@yahoo.se Python 3 05-27-2008 04:32 AM
Does DVD Genie still work on newer PCs after having SP2 installed? E. Scrooge NZ Computing 9 10-15-2006 10:48 AM
Still it DOES NOT WORK =?Utf-8?B?S2ltb24gSWZhbnRpZGlz?= ASP .Net 6 03-09-2006 08:44 PM
PowerDVD. Does it still work? Patrick D. Rockwell DVD Video 1 06-30-2004 02:16 AM



Advertisments