14
14
15
15
Created: 23 Feb 2009, created by Tim Nelson from miscellaneous documents lying around
16
16
17
- Last Modified: 11 Jun 2013
18
- Version: 11
17
+ Last Modified: 27 Nov 2013
18
+ Version: 12
19
19
20
20
=head1 Special Variables
21
21
@@ -89,7 +89,8 @@ be fleshed out in S26.
89
89
%*ENV S02 Hash of Str # system environment variables
90
90
$*ERR S16 IO::Handle # Standard error handle
91
91
$*EUID Int # effective user id
92
- $*EXECUTABLE_NAME Str # executable name
92
+ $?COMPILER IO::Path # location of the compiler executable
93
+ $*SHEBANG IO::Path # location of the interpreter executable (usually eqv $?COMPILER)
93
94
$?FILE S02 Str # current filename of source file
94
95
$?GRAMMAR S02 Grammar # current grammar
95
96
$*GID Int # group id
@@ -110,7 +111,7 @@ be fleshed out in S26.
110
111
$*PERL S02 Application # perl version running under
111
112
$*PID Int # system process id
112
113
%=pod S02 # (or some such)
113
- $*PROGRAM_NAME S19 Str # name of the Perl program being executed
114
+ $*PROGRAM S19 IO::Path # location of the Perl program being executed
114
115
%*PROTOCOLS S16 Hash of Method # Stores the methods needed for the uri() function
115
116
::?ROLE Str # current role (as package or type name)
116
117
$?ROLE S02 Role # current role
@@ -188,7 +189,7 @@ If a column has a "-" in it, it means that item is unavailable in that version o
188
189
$( $GID $*GID Real GID (Group ID)
189
190
$> $EUID $*EUID Effective UID
190
191
$) $EGID $*EGID Effective GID
191
- $0 $PROGRAM_NAME $*PROGRAM_NAME
192
+ $0 $PROGRAM_NAME $*PROGRAM (plus stringification)
192
193
$^C $COMPILING $*COMPILING
193
194
$^D $DEBUGGING $*DEBUGGING
194
195
$^F $SYS_FD_MAX $*SYS_FD_MAX ...or some such
@@ -201,7 +202,7 @@ If a column has a "-" in it, it means that item is unavailable in that version o
201
202
$^V $] $?PERL.version
202
203
$^W $*WARNINGS (if any dynamic control needed)
203
204
${^WARNING_BITS} $?WARNINGS
204
- $^X $*EXECUTABLE_NAME ... or some such
205
+ $^X $?COMPILER or $*SHEBANG (plus stringification)
205
206
ARGV $*ARGFILES Note the P6 idiom for this handle:
206
207
for lines() {
207
208
# each time through loop
0 commit comments