diff options
author | Karl Berry <karl@freefriends.org> | 2012-05-21 00:15:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-05-21 00:15:27 +0000 |
commit | a4c42bfb2337d37da89d789cb8cc226367994e32 (patch) | |
tree | c3eabdef5d565a4e515d2be0d9d4d0540bde0250 /Master/tlpkg/tlperl/lib/pods/perlglossary.pod | |
parent | 8274475057f024d35332ac47c2e2f23ea156e6ed (diff) |
perl 5.14.2 from siep
git-svn-id: svn://tug.org/texlive/trunk@26525 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/tlperl/lib/pods/perlglossary.pod')
-rw-r--r-- | Master/tlpkg/tlperl/lib/pods/perlglossary.pod | 64 |
1 files changed, 43 insertions, 21 deletions
diff --git a/Master/tlpkg/tlperl/lib/pods/perlglossary.pod b/Master/tlpkg/tlperl/lib/pods/perlglossary.pod index b44fcd447f9..639ce3349f8 100644 --- a/Master/tlpkg/tlperl/lib/pods/perlglossary.pod +++ b/Master/tlpkg/tlperl/lib/pods/perlglossary.pod @@ -234,12 +234,14 @@ some of its high-level ideas. =item backreference A substring L<captured|/capturing> by a subpattern within -unadorned parentheses in a L</regex>. Backslashed decimal numbers -(C<\1>, C<\2>, etc.) later in the same pattern refer back to the -corresponding subpattern in the current match. Outside the pattern, +unadorned parentheses in a L</regex>, also referred to as a capture group. The +sequences (C<\g1>, C<\g2>, etc.) later in the same pattern refer back to +the corresponding subpattern in the current match. Outside the pattern, the numbered variables (C<$1>, C<$2>, etc.) continue to refer to these same values, as long as the pattern was the last successful match of -the current dynamic scope. +the current dynamic scope. C<\g{-1}> can be used to refer to a group by +relative rather than absolute position; and groups can be also be named, and +referred to later by name rather than number. See L<perlre/"Capture groups">. =item backtracking @@ -458,10 +460,16 @@ handler when some event of interest transpires. Reduced to a standard form to facilitate comparison. +=item capture buffer, capture group + +These two terms are synonymous: +a L<captured substring|/capturing> by a regex subpattern. + =item capturing The use of parentheses around a L</subpattern> in a L</regular -expression> to store the matched L</substring> as a L</backreference>. +expression> to store the matched L</substring> as a L</backreference> +or L<capture group|/capture buffer, capture group>. (Captured strings are also returned as a list in L</list context>.) =item character @@ -499,7 +507,7 @@ the class (its L<objects|/object>). See also L</inheritance>. =item class method -A L</method> whose L</invocant> is a L</package> name, not an +A L</method> whose L</invocand> is a L</package> name, not an L</object> reference. A method associated with the class as a whole. =item client @@ -537,6 +545,17 @@ A system that writes code for you in a low-level language, such as code to implement the backend of a compiler. See L</program generator>. +=item code point + +The position of a character in a character set encoding. The character +C<NULL> is almost certainly at the zeroth position in all character +sets, so its code point is 0. The code point for the C<SPACE> +character in the ASCII character set is 0x20, or 32 decimal; in EBCDIC +it is 0x40, or 64 decimal. The L<ord|perlfunc/ord> function returns +the code point of a character. + +"code position" and "ordinal" mean the same thing as "code point". + =item code subpattern A L</regular expression> subpattern whose real purpose is to execute @@ -875,7 +894,7 @@ will be called a "binary-only" distribution. =item (to be) dropped modules -When Perl 5 was first released (see L<perlhistory>), several modules were +When Perl 5 was first released (see L<perlhist>), several modules were included, which have now fallen out of common use. It has been suggested that these modules should be removed, since the distribution became rather large, and the common criterion for new module additions is now limited to @@ -1221,6 +1240,12 @@ Someone like Larry, or one of his peculiar friends. Also refers to the strange prefixes that Perl requires as noun markers on its variables. +=back + +=head2 G + +=over 4 + =item garbage collection A misnamed feature--it should be called, "expecting your mother to @@ -1232,12 +1257,6 @@ any comfort, when your interpreter exits, a "real" garbage collector runs to make sure everything is cleaned up if you've been messy with circular references and such.) -=back - -=head2 G - -=over 4 - =item GID Group ID--in Unix, the numeric group ID that the L</operating system> @@ -1451,7 +1470,7 @@ Perl, C<print STDOUT "$foo\n";> can be understood as "verb indirect-object object" where L</STDOUT> is the recipient of the L<print|perlfunc/print> action, and C<"$foo"> is the object being printed. Similarly, when invoking a L</method>, you might place the -invocant between the method and its arguments: +invocand between the method and its arguments: $gollum = new Pathetic::Creature "Smeagol"; give $gollum "Fisssssh!"; @@ -1529,11 +1548,11 @@ of compiler that takes a program and turns it into a more executable form (L<syntax trees|/syntax tree>) within the I<perl> process itself, which the Perl L</run time> system then interprets. -=item invocant +=item invocand The agent on whose behalf a L</method> is invoked. In a L</class> -method, the invocant is a package name. In an L</instance> method, -the invocant is an object reference. +method, the invocand is a package name. In an L</instance> method, +the invocand is an object reference. =item invocation @@ -2106,6 +2125,10 @@ L</pragma>. See either L<switches|/switch> or L</regular expression modifier>. +=item ordinal + +Another name for L</code point> + =item overloading Giving additional meanings to a symbol or construct. Actually, all @@ -2962,9 +2985,8 @@ L</argument> must be the last switch in a cluster. A program technique that lets you evaluate an L</expression> and then, based on the value of the expression, do a multiway branch to the appropriate piece of code for that value. Also called a "case -structure", named after the similar Pascal construct. Most switch -statements in Perl are spelled C<for>. See L<perlsyn/Basic BLOCKs and -Switch Statements>. +structure", named after the similar Pascal construct. See +L<perlsyn/"Switch statements">. =item symbol @@ -3132,7 +3154,7 @@ to build special tools. Perl is sort of a machine shop. To turn one string representation into another by mapping each character of the source string to its corresponding character in the result string. See -L<perlop/trE<sol>SEARCHLISTE<sol>REPLACEMENTLISTE<sol>cds>. +L<perlop/trE<sol>SEARCHLISTE<sol>REPLACEMENTLISTE<sol>cdsr>. =item trigger |