From 837638265c936ed27578a2aa7829a47e866303b0 Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Tue, 28 Dec 1999 02:59:16 +0000 Subject: newer version of constant.pm from Tom Phoenix; added Tom's notes to perldelta; added STOP, DESTROY and AUTOLOAD to specials list p4raw-id: //depot/perl@4718 --- pod/perldelta.pod | 12 +++++++++++- pod/perlvar.pod | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'pod') diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 8d4fef80a8..c5f3a30edd 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -1108,7 +1108,17 @@ Perl bytecode. See L. =item constant -References can now be used. See L. +References can now be used. + +The new version also allows a leading underscore in constant names, but +disallows a double leading underscore (as in "__LINE__"). Some other names +are disallowed or warned against, including BEGIN, END, etc. Some names +which were forced into main:: used to fail silently in some cases; now they're +fatal (outside of main::) and an optional warning (inside of main::). +The ability to detect whether a constant had been set with a given name has +been added. + +See L. =item charnames diff --git a/pod/perlvar.pod b/pod/perlvar.pod index d38bc4937d..5e705313d5 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -270,7 +270,7 @@ set, you'll get the record back in pieces. On VMS, record reads are done with the equivalent of C, so it's best not to mix record and non-record reads on the same file. (This is unlikely to be a problem, because any file you'd -want to read in record mode is probably usable in line mode.) +want to read in record mode is probably unusable in line mode.) Non-VMS systems do normal I/O, so it's safe to mix record and non-record reads of a file. -- cgit v1.2.1