perlglossary.html

来自「perl教程」· HTML 代码 · 共 1,506 行 · 第 1/5 页

HTML
1,506 行
字号
various manipulations of the program text based on the current
definitions.  Also known as <em>cpp</em>(1).</p>
</dd>
</li>
<dt><strong><a name="item_call_by_reference">call by reference</a></strong>

<dd>
<p>An <a href="#item_argument">argument</a>-passing mechanism in which the <a href="#item_formal_arguments">formal arguments</a>
refer directly to the <a href="#item_actual_arguments">actual arguments</a>, and the <a href="#item_subroutine">subroutine</a> can
change the actual arguments by changing the formal arguments.  That
is, the formal argument is an <a href="#item_alias">alias</a> for the actual argument.  See
also <a href="#item_call_by_value">call by value</a>.</p>
</dd>
</li>
<dt><strong><a name="item_call_by_value">call by value</a></strong>

<dd>
<p>An <a href="#item_argument">argument</a>-passing mechanism in which the <a href="#item_formal_arguments">formal arguments</a>
refer to a copy of the <a href="#item_actual_arguments">actual arguments</a>, and the <a href="#item_subroutine">subroutine</a>
cannot change the actual arguments by changing the formal arguments.
See also <a href="#item_call_by_reference">call by reference</a>.</p>
</dd>
</li>
<dt><strong><a name="item_callback">callback</a></strong>

<dd>
<p>A <a href="#item_handler">handler</a> that you register with some other part of your program
in the hope that the other part of your program will <a href="#item_trigger">trigger</a> your
handler when some event of interest transpires.</p>
</dd>
</li>
<dt><strong><a name="item_canonical">canonical</a></strong>

<dd>
<p>Reduced to a standard form to facilitate comparison.</p>
</dd>
</li>
<dt><strong><a name="item_capturing">capturing</a></strong>

<dd>
<p>The use of parentheses around a <a href="#item_subpattern">subpattern</a> in a <a href="#item_regular_expression">regular expression</a> to store the matched <a href="#item_substring">substring</a> as a <a href="#item_backreference">backreference</a>.
(Captured strings are also returned as a list in <a href="#item_list_context">list context</a>.)</p>
</dd>
</li>
<dt><strong><a name="item_character">character</a></strong>

<dd>
<p>A small integer representative of a unit of orthography.
Historically, characters were usually stored as fixed-width integers
(typically in a byte, or maybe two, depending on the character set),
but with the advent of UTF-8, characters are often stored in a
variable number of bytes depending on the size of the integer that
represents the character.  Perl manages this transparently for you,
for the most part.</p>
</dd>
</li>
<dt><strong><a name="item_character_class">character class</a></strong>

<dd>
<p>A square-bracketed list of characters used in a <a href="#item_regular_expression">regular expression</a>
to indicate that any character of the set may occur at a given point.
Loosely, any predefined set of characters so used.</p>
</dd>
</li>
<dt><strong><a name="item_character_property">character property</a></strong>

<dd>
<p>A predefined <a href="#item_character_class">character class</a> matchable by the <code>\p</code>
<a href="#item_metasymbol">metasymbol</a>.  Many standard properties are defined for <a href="#item_unicode">Unicode</a>.</p>
</dd>
</li>
<dt><strong><a name="item_circumfix_operator">circumfix operator</a></strong>

<dd>
<p>An <a href="#item_operator">operator</a> that surrounds its <a href="#item_operand">operand</a>, like the angle
operator, or parentheses, or a hug.</p>
</dd>
</li>
<dt><strong><a name="item_class">class</a></strong>

<dd>
<p>A user-defined <a href="#item_type">type</a>, implemented in Perl via a <a href="#item_package">package</a> that
provides (either directly or by inheritance) <a href="#item_method">methods</a> (that
is, <a href="#item_subroutine">subroutines</a>) to handle <a href="#item_instance">instances</a> of
the class (its <a href="#item_object">objects</a>).  See also <a href="#item_inheritance">inheritance</a>.</p>
</dd>
</li>
<dt><strong><a name="item_class_method">class method</a></strong>

<dd>
<p>A <a href="#item_method">method</a> whose <a href="#item_invocant">invocant</a> is a <a href="#item_package">package</a> name, not an
<a href="#item_object">object</a> reference.  A method associated with the class as a whole.</p>
</dd>
</li>
<dt><strong><a name="item_client">client</a></strong>

<dd>
<p>In networking, a <a href="#item_process">process</a> that initiates contact with a <a href="#item_server">server</a>
process in order to exchange data and perhaps receive a service.</p>
</dd>
</li>
<dt><strong><a name="item_cloister">cloister</a></strong>

<dd>
<p>A <a href="#item_cluster">cluster</a> used to restrict the scope of a <a href="#item_regular_expression_modifier">regular expression modifier</a>.</p>
</dd>
</li>
<dt><strong><a name="item_closure">closure</a></strong>

<dd>
<p>An <a href="#item_anonymous">anonymous</a> subroutine that, when a reference to it is generated
at run time, keeps track of the identities of externally visible
<a href="#item_lexical_variable">lexical variables</a> even after those lexical
variables have supposedly gone out of <a href="#item_scope">scope</a>.  They're called
&quot;closures&quot; because this sort of behavior gives mathematicians a sense
of closure.</p>
</dd>
</li>
<dt><strong><a name="item_cluster">cluster</a></strong>

<dd>
<p>A parenthesized <a href="#item_subpattern">subpattern</a> used to group parts of a <a href="#item_regular_expression">regular expression</a> into a single <a href="#item_atom">atom</a>.</p>
</dd>
</li>
<dt><strong><a name="item_code">CODE</a></strong>

<dd>
<p>The word returned by the <a href="../../lib/Pod/perlfunc.html#ref">ref</a> function when you apply
it to a reference to a subroutine.  See also <a href="#item_cv">CV</a>.</p>
</dd>
</li>
<dt><strong><a name="item_code_generator">code generator</a></strong>

<dd>
<p>A system that writes code for you in a low-level language, such as
code to implement the backend of a compiler.  See <a href="#item_program_generator">program generator</a>.</p>
</dd>
</li>
<dt><strong><a name="item_code_subpattern">code subpattern</a></strong>

<dd>
<p>A <a href="#item_regular_expression">regular expression</a> subpattern whose real purpose is to execute
some Perl code, for example, the <code>(?{...})</code> and <code>(??{...})</code>
subpatterns.</p>
</dd>
</li>
<dt><strong><a name="item_collating_sequence">collating sequence</a></strong>

<dd>
<p>The order into which <a href="#item_character">characters</a> sort.  This is used by
<a href="#item_string">string</a> comparison routines to decide, for example, where in this
glossary to put &quot;collating sequence&quot;.</p>
</dd>
</li>
<dt><strong><a name="item_command">command</a></strong>

<dd>
<p>In <a href="#item_shell">shell</a> programming, the syntactic combination of a program name
and its arguments.  More loosely, anything you type to a shell (a
command interpreter) that starts it doing something.  Even more
loosely, a Perl <a href="#item_statement">statement</a>, which might start with a <a href="#item_label">label</a> and
typically ends with a semicolon.</p>
</dd>
</li>
<dt><strong><a name="item_command_buffering">command buffering</a></strong>

<dd>
<p>A mechanism in Perl that lets you store up the output of each Perl
<a href="#item_command">command</a> and then flush it out as a single request to the
<a href="#item_operating_system">operating system</a>.  It's enabled by setting the <a href="../../lib/Pod/perlvar.html#item___"><code>$|</code></a>
(<code>$AUTOFLUSH</code>) variable to a true value.  It's used when you don't
want data sitting around not going where it's supposed to, which may
happen because the default on a <a href="#item_file">file</a> or <a href="#item_pipe">pipe</a> is to use
<a href="#item_block_buffering">block buffering</a>.</p>
</dd>
</li>
<dt><strong><a name="item_command_name">command name</a></strong>

<dd>
<p>The name of the program currently executing, as typed on the command
line.  In C, the <a href="#item_command">command</a> name is passed to the program as the
first command-line argument.  In Perl, it comes in separately as
<a href="../../lib/Pod/perlvar.html#item__0"><code>$0</code></a>.</p>
</dd>
</li>
<dt><strong><a name="item_command_2dline_arguments">command-line arguments</a></strong>

<dd>
<p>The <a href="#item_value">values</a> you supply along with a program name when you
tell a <a href="#item_shell">shell</a> to execute a <a href="#item_command">command</a>.  These values are passed to
a Perl program through <a href="../../lib/Pod/perlvar.html#item__argv"><code>@ARGV</code></a>.</p>
</dd>
</li>
<dt><strong><a name="item_comment">comment</a></strong>

<dd>
<p>A remark that doesn't affect the meaning of the program.  In Perl, a
comment is introduced by a <code>#</code> character and continues to the end of
the line.</p>
</dd>
</li>
<dt><strong><a name="item_compilation_unit">compilation unit</a></strong>

<dd>
<p>The <a href="#item_file">file</a> (or <a href="#item_string">string</a>, in the case of <a href="../../lib/Pod/perlfunc.html#eval">eval</a>)
that is currently being compiled.</p>
</dd>
</li>
<dt><strong><a name="item_compile_phase">compile phase</a></strong>

<dd>
<p>Any time before Perl starts running your main program.  See also
<a href="#item_run_phase">run phase</a>.  Compile phase is mostly spent in <a href="#item_compile_time">compile time</a>, but
may also be spent in <a href="#item_run_time">run time</a> when <code>BEGIN</code> blocks,
<a href="../../lib/Pod/perlfunc.html#use">use</a> declarations, or constant subexpressions are being
evaluated.  The startup and import code of any <a href="../../lib/Pod/perlfunc.html#use">use</a>
declaration is also run during compile phase.</p>
</dd>
</li>
<dt><strong><a name="item_compile_time">compile time</a></strong>

<dd>
<p>The time when Perl is trying to make sense of your code, as opposed to
when it thinks it knows what your code means and is merely trying to
do what it thinks your code says to do, which is <a href="#item_run_time">run time</a>.</p>
</dd>
</li>
<dt><strong><a name="item_compiler">compiler</a></strong>

<dd>
<p>Strictly speaking, a program that munches up another program and spits
out yet another file containing the program in a &quot;more executable&quot;
form, typically containing native machine instructions.  The <em>perl</em>
program is not a compiler by this definition, but it does contain a
kind of compiler that takes a program and turns it into a more
executable form (<a href="#item_syntax_tree">syntax trees</a>) within the <em>perl</em>
process itself, which the <a href="#item_interpreter">interpreter</a> then interprets.  There are,
however, extension <a href="#item_module">modules</a> to get Perl to act more like a
&quot;real&quot; compiler.  See <a href="../../lib/O.html">the O manpage</a>.</p>
</dd>
</li>
<dt><strong><a name="item_composer">composer</a></strong>

<dd>
<p>A &quot;constructor&quot; for a <a href="#item_referent">referent</a> that isn't really an <a href="#item_object">object</a>,
like an anonymous array or a hash (or a sonata, for that matter).  For
example, a pair of braces acts as a composer for a hash, and a pair of
brackets acts as a composer for an array.  See <a href="../../lib/Pod/perlref.html#making_references">Making References in the perlref manpage</a>.</p>
</dd>
</li>
<dt><strong><a name="item_concatenation">concatenation</a></strong>

<dd>
<p>The process of gluing one cat's nose to another cat's tail.  Also, a
similar operation on two <a href="#item_string">strings</a>.</p>
</dd>
</li>
<dt><strong><a name="item_conditional">conditional</a></strong>

<dd>
<p>Something &quot;iffy&quot;.  See <a href="#item_boolean_context">Boolean context</a>.</p>
</dd>
</li>
<dt><strong><a name="item_connection">connection</a></strong>

<dd>
<p>In telephony, the temporary electrical circuit between the caller's
and the callee's phone.  In networking, the same kind of temporary
circuit between a <a href="#item_client">client</a> and a <a href="#item_server">server</a>.</p>
</dd>
</li>
<dt><strong><a name="item_construct">construct</a></strong>

<dd>
<p>As a noun, a piece of syntax made up of smaller pieces.  As a
transitive verb, to create an <a href="#item_object">object</a> using a <a href="#item_constructor">constructor</a>.</p>
</dd>
</li>
<dt><strong><a name="item_constructor">constructor</a></strong>

<dd>
<p>Any <a href="#item_class_method">class method</a>, instance <a href="#item_method">method</a>, or <a href="#item_subroutine">subroutine</a>
that composes, initializes, blesses, and returns an <a href="#item_object">object</a>.
Sometimes we use the term loosely to mean a <a href="#item_composer">composer</a>.</p>
</dd>
</li>
<dt><strong><a name="item_context">context</a></strong>

<dd>
<p>The surroundings, or environment.  The context given by the
surrounding code determines what kind of data a particular
<a href="#item_expression">expression</a> is expected to return.  The three primary contexts are
<a href="#item_list_context">list context</a>, <a href="#item_scalar_context">scalar context</a>, and <a href="#item_void_context">void context</a>.  Scalar
context is sometimes subdivided into <a href="#item_boolean_context">Boolean context</a>, <a href="#item_numeric_context">numeric context</a>, <a href="#item_string_context">string context</a>, and <a href="#item_void_context">void context</a>.  There's also a
&quot;don't care&quot; scalar context (which is dealt with in Programming Perl,
Third Edition, Chapter 2, &quot;Bits and Pieces&quot; if you care).</p>
</dd>
</li>
<dt><strong><a name="item_continuation">continuation</a></strong>

<dd>
<p>The treatment of more than one physical <a href="#item_line">line</a> as a single logical

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?