perlglossary.html
来自「perl教程」· HTML 代码 · 共 1,506 行 · 第 1/5 页
HTML
1,506 行
<?xml version="1.0" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- saved from url=(0017)http://localhost/ -->
<script language="JavaScript" src="../../displayToc.js"></script>
<script language="JavaScript" src="../../tocParas.js"></script>
<script language="JavaScript" src="../../tocTab.js"></script>
<link rel="stylesheet" type="text/css" href="../../scineplex.css">
<title>perlglossary - Perl Glossary</title>
<link rel="stylesheet" href="../../Active.css" type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:" />
</head>
<body>
<script>writelinks('__top__',2);</script>
<h1><a>perlglossary - Perl Glossary</a></h1>
<p><a name="__index__"></a></p>
<!-- INDEX BEGIN -->
<ul>
<li><a href="#name">NAME</a></li>
<li><a href="#description">DESCRIPTION</a></li>
<ul>
<li><a href="#a">A</a></li>
<li><a href="#b">B</a></li>
<li><a href="#c">C</a></li>
<li><a href="#d">D</a></li>
<li><a href="#e">E</a></li>
<li><a href="#f">F</a></li>
<li><a href="#g">G</a></li>
<li><a href="#h">H</a></li>
<li><a href="#i">I</a></li>
<li><a href="#j">J</a></li>
<li><a href="#k">K</a></li>
<li><a href="#l">L</a></li>
<li><a href="#m">M</a></li>
<li><a href="#n">N</a></li>
<li><a href="#o">O</a></li>
<li><a href="#p">P</a></li>
<li><a href="#q">Q</a></li>
<li><a href="#r">R</a></li>
<li><a href="#s">S</a></li>
<li><a href="#t">T</a></li>
<li><a href="#u">U</a></li>
<li><a href="#v">V</a></li>
<li><a href="#w">W</a></li>
<li><a href="#x">X</a></li>
<li><a href="#y">Y</a></li>
<li><a href="#z">Z</a></li>
</ul>
<li><a href="#author_and_copyright">AUTHOR AND COPYRIGHT</a></li>
</ul>
<!-- INDEX END -->
<hr />
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>perlglossary - Perl Glossary</p>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>A glossary of terms (technical and otherwise) used in the Perl documentation.
Other useful sources include the Free On-Line Dictionary of Computing
<a href="http://foldoc.doc.ic.ac.uk/foldoc/index.html">http://foldoc.doc.ic.ac.uk/foldoc/index.html</a>, the Jargon File
<a href="http://catb.org/~esr/jargon/">http://catb.org/~esr/jargon/</a>, and Wikipedia <a href="http://www.wikipedia.org/">http://www.wikipedia.org/</a>.</p>
<p>
</p>
<h2><a name="a">A</a></h2>
<dl>
<dt><strong><a name="item_accessor_methods">accessor methods</a></strong>
<dd>
<p>A <a href="#item_method">method</a> used to indirectly inspect or update an <a href="#item_object">object</a>'s
state (its <a href="#item_instance_variable">instance variables</a>).</p>
</dd>
</li>
<dt><strong><a name="item_actual_arguments">actual arguments</a></strong>
<dd>
<p>The <a href="#item_scalar_value">scalar values</a> that you supply to a <a href="#item_function">function</a>
or <a href="#item_subroutine">subroutine</a> when you call it. For instance, when you call
<code>power("puff")</code>, the string <code>"puff"</code> is the actual argument. See
also <a href="#item_argument">argument</a> and <a href="#item_formal_arguments">formal arguments</a>.</p>
</dd>
</li>
<dt><strong><a name="item_address_operator">address operator</a></strong>
<dd>
<p>Some languages work directly with the memory addresses of values, but
this can be like playing with fire. Perl provides a set of asbestos
gloves for handling all memory management. The closest to an address
operator in Perl is the backslash operator, but it gives you a <a href="#item_hard_reference">hard reference</a>, which is much safer than a memory address.</p>
</dd>
</li>
<dt><strong><a name="item_algorithm">algorithm</a></strong>
<dd>
<p>A well-defined sequence of steps, clearly enough explained that even a
computer could do them.</p>
</dd>
</li>
<dt><strong><a name="item_alias">alias</a></strong>
<dd>
<p>A nickname for something, which behaves in all ways as though you'd
used the original name instead of the nickname. Temporary aliases are
implicitly created in the loop variable for <code>foreach</code> loops, in the
<a href="../../lib/Pod/perlvar.html#item___"><code>$_</code></a> variable for <a href="../../lib/Pod/perlfunc.html#map">map</a> or <a href="../../lib/Pod/perlfunc.html#grep">grep</a>
operators, in <a href="../../lib/Pod/perlvar.html#item__a"><code>$a</code></a> and <a href="../../lib/Pod/perlvar.html#item__b"><code>$b</code></a> during <a href="../../lib/Pod/perlfunc.html#sort">sort</a>'s
comparison function, and in each element of <a href="../../lib/Pod/perlvar.html#item___"><code>@_</code></a> for the <a href="#item_actual_arguments">actual arguments</a> of a subroutine call. Permanent aliases are explicitly
created in <a href="#item_package">packages</a> by <a href="#item_import">importing</a> symbols or by
assignment to <a href="#item_typeglob">typeglobs</a>. Lexically scoped aliases for
package variables are explicitly created by the <a href="../../lib/Pod/perlfunc.html#our">our</a>
declaration.</p>
</dd>
</li>
<dt><strong><a name="item_alternatives">alternatives</a></strong>
<dd>
<p>A list of possible choices from which you may select only one, as in
"Would you like door A, B, or C?" Alternatives in regular expressions
are separated with a single vertical bar: <code>|</code>. Alternatives in
normal Perl expressions are separated with a double vertical bar:
<code>||</code>. Logical alternatives in <a href="#item_boolean">Boolean</a> expressions are separated
with either <code>||</code> or <code>or</code>.</p>
</dd>
</li>
<dt><strong><a name="item_anonymous">anonymous</a></strong>
<dd>
<p>Used to describe a <a href="#item_referent">referent</a> that is not directly accessible
through a named <a href="#item_variable">variable</a>. Such a referent must be indirectly
accessible through at least one <a href="#item_hard_reference">hard reference</a>. When the last
hard reference goes away, the anonymous referent is destroyed without
pity.</p>
</dd>
</li>
<dt><strong><a name="item_architecture">architecture</a></strong>
<dd>
<p>The kind of computer you're working on, where one "kind" of computer
means all those computers sharing a compatible machine language.
Since Perl programs are (typically) simple text files, not executable
images, a Perl program is much less sensitive to the architecture it's
running on than programs in other languages, such as C, that are
compiled into machine code. See also <a href="#item_platform">platform</a> and <a href="#item_operating_system">operating system</a>.</p>
</dd>
</li>
<dt><strong><a name="item_argument">argument</a></strong>
<dd>
<p>A piece of data supplied to a <a href="#item_executable_file">program</a>,
<a href="#item_subroutine">subroutine</a>, <a href="#item_function">function</a>, or <a href="#item_method">method</a> to tell it what it's
supposed to do. Also called a "parameter".</p>
</dd>
</li>
<dt><strong><a name="item_argv">ARGV</a></strong>
<dd>
<p>The name of the array containing the <a href="#item_argument">argument</a> <a href="#item_vector">vector</a> from the
command line. If you use the empty <code><></code> operator, <a href="#item_argv">ARGV</a> is
the name of both the <a href="#item_filehandle">filehandle</a> used to traverse the arguments and
the <a href="#item_scalar">scalar</a> containing the name of the current input file.</p>
</dd>
</li>
<dt><strong><a name="item_arithmetical_operator">arithmetical operator</a></strong>
<dd>
<p>A <a href="#item_symbol">symbol</a> such as <code>+</code> or <code>/</code> that tells Perl to do the arithmetic
you were supposed to learn in grade school.</p>
</dd>
</li>
<dt><strong><a name="item_array">array</a></strong>
<dd>
<p>An ordered sequence of <a href="#item_value">values</a>, stored such that you can
easily access any of the values using an integer <a href="#item_subscript">subscript</a>
that specifies the value's <a href="#item_offset">offset</a> in the sequence.</p>
</dd>
</li>
<dt><strong><a name="item_array_context">array context</a></strong>
<dd>
<p>An archaic expression for what is more correctly referred to as
<a href="#item_list_context">list context</a>.</p>
</dd>
</li>
<dt><strong><a name="item_ascii">ASCII</a></strong>
<dd>
<p>The American Standard Code for Information Interchange (a 7-bit
character set adequate only for poorly representing English text).
Often used loosely to describe the lowest 128 values of the various
ISO-8859-X character sets, a bunch of mutually incompatible 8-bit
codes best described as half ASCII. See also <a href="#item_unicode">Unicode</a>.</p>
</dd>
</li>
<dt><strong><a name="item_assertion">assertion</a></strong>
<dd>
<p>A component of a <a href="#item_regular_expression">regular expression</a> that must be true for the
pattern to match but does not necessarily match any characters itself.
Often used specifically to mean a <a href="#item_zero_width">zero width</a> assertion.</p>
</dd>
</li>
<dt><strong><a name="item_assignment">assignment</a></strong>
<dd>
<p>An <a href="#item_operator">operator</a> whose assigned mission in life is to change the value
of a <a href="#item_variable">variable</a>.</p>
</dd>
</li>
<dt><strong><a name="item_assignment_operator">assignment operator</a></strong>
<dd>
<p>Either a regular <a href="#item_assignment">assignment</a>, or a compound <a href="#item_operator">operator</a> composed
of an ordinary assignment and some other operator, that changes the
value of a variable in place, that is, relative to its old value. For
example, <a href="../../lib/Pod/perlvar.html#item__a"><code>$a += 2</code></a> adds <code>2</code> to <a href="../../lib/Pod/perlvar.html#item__a"><code>$a</code></a>.</p>
</dd>
</li>
<dt><strong><a name="item_associative_array">associative array</a></strong>
<dd>
<p>See <a href="#item_hash">hash</a>. Please.</p>
</dd>
</li>
<dt><strong><a name="item_associativity">associativity</a></strong>
<dd>
<p>Determines whether you do the left <a href="#item_operator">operator</a> first or the right
<a href="#item_operator">operator</a> first when you have "A <a href="#item_operator">operator</a> B <a href="#item_operator">operator</a> C" and
the two operators are of the same precedence. Operators like <code>+</code> are
left associative, while operators like <code>**</code> are right associative.
See <a href="../../lib/Pod/perlop.html">the perlop manpage</a> for a list of operators and their associativity.</p>
</dd>
</li>
<dt><strong><a name="item_asynchronous">asynchronous</a></strong>
<dd>
<p>Said of events or activities whose relative temporal ordering is
indeterminate because too many things are going on at once. Hence, an
asynchronous event is one you didn't know when to expect.</p>
</dd>
</li>
<dt><strong><a name="item_atom">atom</a></strong>
<dd>
<p>A <a href="#item_regular_expression">regular expression</a> component potentially matching a
<a href="#item_substring">substring</a> containing one or more characters and treated as an
indivisible syntactic unit by any following <a href="#item_quantifier">quantifier</a>. (Contrast
with an <a href="#item_assertion">assertion</a> that matches something of <a href="#item_zero_width">zero width</a> and may
not be quantified.)</p>
</dd>
</li>
<dt><strong><a name="item_atomic_operation">atomic operation</a></strong>
<dd>
<p>When Democritus gave the word "atom" to the indivisible bits of
matter, he meant literally something that could not be cut: <em>a-</em>
(not) + <em>tomos</em> (cuttable). An atomic operation is an action that
can't be interrupted, not one forbidden in a nuclear-free zone.</p>
</dd>
</li>
<dt><strong><a name="item_attribute">attribute</a></strong>
<dd>
<p>A new feature that allows the declaration of <a href="#item_variable">variables</a>
and <a href="#item_subroutine">subroutines</a> with modifiers as in <code>sub foo : locked
method</code>. Also, another name for an <a href="#item_instance_variable">instance variable</a> of an
<a href="#item_object">object</a>.</p>
</dd>
</li>
<dt><strong><a name="item_autogeneration">autogeneration</a></strong>
<dd>
<p>A feature of <a href="#item_operator_overloading">operator overloading</a> of <a href="#item_object">objects</a>, whereby
the behavior of certain <a href="#item_operator">operators</a> can be reasonably
deduced using more fundamental operators. This assumes that the
overloaded operators will often have the same relationships as the
regular operators. See <a href="../../lib/Pod/perlop.html">the perlop manpage</a>.</p>
</dd>
</li>
<dt><strong><a name="item_autoincrement">autoincrement</a></strong>
<dd>
<p>To add one to something automatically, hence the name of the <code>++</code>
operator. To instead subtract one from something automatically is
known as an "autodecrement".</p>
</dd>
</li>
<dt><strong><a name="item_autoload">autoload</a></strong>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?