X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlvar.pod;h=52ed78bbc1f5eb4f193d5c49a39b9a0cae39d6a7;hb=cf2649810f00335bd657355d81bcc9384a620135;hp=29cc9ea448621c1ce43bec5f755c1c182454a12e;hpb=4cb1c523c98f570fe603f3ae31d419bb956906d9;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlvar.pod b/pod/perlvar.pod index 29cc9ea..52ed78b 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -528,9 +528,9 @@ C<$-[>IC<]> is the offset of the start of the substring matched by I-th subpattern, or undef if the subpattern did not match. Thus after a match against $_, $& coincides with C. Similarly, C<$>I coincides with CIC<], -$+[>IC<] - $-[>IC<]> if C<$-[>IC<]> is defined, and $+ coincides with -C. One can use C<$#-> to find the last +$+[0] - $-[0]>. Similarly, $I coincides with C if C<$-[n]> is defined, and $+ coincides with +C. One can use C<$#-> to find the last matched subgroup in the last successful match. Contrast with C<$#+>, the number of subgroups in the regular expression. Compare with C<@+>. @@ -617,7 +617,7 @@ L. The status returned by the last pipe close, backtick (C<``>) command, successful call to wait() or waitpid(), or from the system() operator. This is just the 16-bit status word returned by the -wait() system call (or else is made up to look like it). Thus, the +traditional Unix wait() system call (or else is made up to look like it). Thus, the exit value of the subprocess is really (C<<< $? >> 8 >>>), and C<$? & 127> gives which signal, if any, the process died from, and C<$? & 128> reports whether there was a core dump. (Mnemonic: @@ -643,6 +643,17 @@ status; see L for details. Also see L. +=item ${^CHILD_ERROR_NATIVE} + +The native status returned by the last pipe close, backtick (C<``>) +command, successful call to wait() or waitpid(), or from the system() +operator. On POSIX-like systems this value can be decoded with the +WIFEXITED, WEXITSTATUS, WIFSIGNALED, WTERMSIG, WIFSTOPPED, WSTOPSIG +and WIFCONTINUED functions provided by the L module. + +Under VMS this reflects the actual VMS exit status; i.e. it is the same +as $? when the pragma C is in effect. + =item ${^ENCODING} The I to the Encode object that is used to convert @@ -1152,6 +1163,13 @@ documentation for the C<-C> switch for more information about the possible values. This variable is set during Perl startup and is thereafter read-only. +=item ${^UTF8LOCALE} + +This variable indicates whether an UTF-8 locale was detected by perl at +startup. This information is used by perl when it's in +adjust-utf8ness-to-locale mode (as when run with the C<-CL> command-line +switch); see L for more info on this. + =item $PERL_VERSION =item $^V @@ -1221,7 +1239,7 @@ executable files do not require use of the suffix when invoking a command. To convert the value of $^X to a path name, use the following statements: -# Build up a set of file names (not command names). + # Build up a set of file names (not command names). use Config; $this_perl = $^X; if ($^O ne 'VMS')