[comp.lang.perl] Special Variable $^T not documented in manual

dcd@tc.fluke.COM (David Dyck) (01/26/91)

In the Perl Reference Guide there is a reverence to

$^T ($ control-T), which is:
	The time (as delivered by "time") when the program started.
	This values is used by the file test operatores "-M", "-A" and
	"-C".

This variable is NOT mentioned in the perl man page.

            David Dyck			dcd@tc.fluke.COM

jv@mh.nl (Johan Vromans) (01/27/91)

In article <1991Jan25.200918.11912@tc.fluke.COM> dcd@tc.fluke.COM (David Dyck) writes:

> In the Perl Reference Guide there is a reverence to
> 
> $^T ($ control-T), which is:

It is (dollar-caret-T, not dollar control-T).
This is actually a Perl 4.0 feature that happens to be already
implemented in 3.044...


	Johan
-- 
Johan Vromans				       jv@mh.nl via internet backbones
Multihouse Automatisering bv		       uucp: ..!{uunet,hp4nl}!mh.nl!jv
Doesburgweg 7, 2803 PL Gouda, The Netherlands  phone/fax: +31 1820 62911/62500
------------------------ "Arms are made for hugging" -------------------------

lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) (01/29/91)

In article <1991Jan26.191204.13430@pronto.mh.nl> Johan Vromans <jv@mh.nl> writes:
: > $^T ($ control-T), which is:
: 
: It is (dollar-caret-T, not dollar control-T).

Guess again.  Either way works.  If you go back to Perl version 1, you'll
see the hooks for using control characters as special variables.

Of course, anyone in their right mind will use the caret notation.

: This is actually a Perl 4.0 feature that happens to be already
: implemented in 3.044...

That part is right.  Though I usually try to document features as they're
added.

Larry

jv@mh.nl (Johan Vromans) (01/30/91)

In article <11209@jpl-devvax.JPL.NASA.GOV> lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) writes:
> : It is (dollar-caret-T, not dollar control-T).
> 
> Guess again.  Either way works.  If you go back to Perl version 1, you'll
> see the hooks for using control characters as special variables.

Yech. A suitable case for de-implementation. Existing perl programs
that will break deserve to do so.

[And never stop being amazed ...]

	Johan
-- 
Johan Vromans				       jv@mh.nl via internet backbones
Multihouse Automatisering bv		       uucp: ..!{uunet,hp4nl}!mh.nl!jv
Doesburgweg 7, 2803 PL Gouda, The Netherlands  phone/fax: +31 1820 62911/62500
------------------------ "Arms are made for hugging" -------------------------