perlglossary.html
来自「perl教程」· HTML 代码 · 共 1,506 行 · 第 1/5 页
HTML
1,506 行
<dd>
<p>To load on demand. (Also called "lazy" loading.) Specifically, to
call an <a href="../../lib/Pod/perlsub.html#autoloading">AUTOLOAD</a> subroutine on behalf of an
undefined subroutine.</p>
</dd>
</li>
<dt><strong><a name="item_autosplit">autosplit</a></strong>
<dd>
<p>To split a string automatically, as the <strong>-a</strong> <a href="#item_switch">switch</a> does when
running under <strong>-p</strong> or <strong>-n</strong> in order to emulate <a href="#item_awk">awk</a>. (See also
the <a href="../../lib/AutoSplit.html">the AutoSplit manpage</a> module, which has nothing to do with the <strong>-a</strong>
switch, but a lot to do with autoloading.)</p>
</dd>
</li>
<dt><strong><a name="item_autovivification">autovivification</a></strong>
<dd>
<p>A Greco-Roman word meaning "to bring oneself to life". In Perl,
storage locations (<a href="#item_lvalue">lvalues</a>) spontaneously generate
themselves as needed, including the creation of any <a href="#item_hard_reference">hard reference</a>
values to point to the next level of storage. The assignment
<code>$a[5][5][5][5][5] = "quintet"</code> potentially creates five scalar
storage locations, plus four references (in the first four scalar
locations) pointing to four new anonymous arrays (to hold the last
four scalar locations). But the point of autovivification is that you
don't have to worry about it.</p>
</dd>
</li>
<dt><strong><a name="item_av">AV</a></strong>
<dd>
<p>Short for "array value", which refers to one of Perl's internal data
types that holds an <a href="#item_array">array</a>. The <a href="#item_av">AV</a> type is a subclass of
<a href="#item_sv">SV</a>.</p>
</dd>
</li>
<dt><strong><a name="item_awk">awk</a></strong>
<dd>
<p>Descriptive editing term--short for "awkward". Also coincidentally
refers to a venerable text-processing language from which Perl derived
some of its high-level ideas.</p>
</dd>
</li>
</dl>
<p>
</p>
<h2><a name="b">B</a></h2>
<dl>
<dt><strong><a name="item_backreference">backreference</a></strong>
<dd>
<p>A substring <a href="#item_capturing">captured</a> by a subpattern within
unadorned parentheses in a <a href="#item_regex">regex</a>. Backslashed decimal numbers
(<code>\1</code>, <code>\2</code>, etc.) later in the same pattern refer back to the
corresponding subpattern in the current match. Outside the pattern,
the numbered variables (<code>$1</code>, <code>$2</code>, etc.) continue to refer to these
same values, as long as the pattern was the last successful match of
the current dynamic scope.</p>
</dd>
</li>
<dt><strong><a name="item_backtracking">backtracking</a></strong>
<dd>
<p>The practice of saying, "If I had to do it all over, I'd do it
differently," and then actually going back and doing it all over
differently. Mathematically speaking, it's returning from an
unsuccessful recursion on a tree of possibilities. Perl backtracks
when it attempts to match patterns with a <a href="#item_regular_expression">regular expression</a>, and
its earlier attempts don't pan out. See <a href="../../lib/Pod/perlre.html#backtracking">Backtracking in the perlre manpage</a>.</p>
</dd>
</li>
<dt><strong><a name="item_backward_compatibility">backward compatibility</a></strong>
<dd>
<p>Means you can still run your old program because we didn't break any
of the features or bugs it was relying on.</p>
</dd>
</li>
<dt><strong><a name="item_bareword">bareword</a></strong>
<dd>
<p>A word sufficiently ambiguous to be deemed illegal under <a href="../../lib/strict.html#strict_subs">use strict 'subs'</a>. In the absence of that stricture, a
bareword is treated as if quotes were around it.</p>
</dd>
</li>
<dt><strong><a name="item_base_class">base class</a></strong>
<dd>
<p>A generic <a href="#item_object">object</a> type; that is, a <a href="#item_class">class</a> from which other, more
specific classes are derived genetically by <a href="#item_inheritance">inheritance</a>. Also
called a "superclass" by people who respect their ancestors.</p>
</dd>
</li>
<dt><strong><a name="item_big_2dendian">big-endian</a></strong>
<dd>
<p>From Swift: someone who eats eggs big end first. Also used of
computers that store the most significant <a href="#item_byte">byte</a> of a word at a
lower byte address than the least significant byte. Often considered
superior to little-endian machines. See also <a href="#item_little_2dendian">little-endian</a>.</p>
</dd>
</li>
<dt><strong><a name="item_binary">binary</a></strong>
<dd>
<p>Having to do with numbers represented in base 2. That means there's
basically two numbers, 0 and 1. Also used to describe a "non-text
file", presumably because such a file makes full use of all the binary
bits in its bytes. With the advent of <a href="#item_unicode">Unicode</a>, this distinction,
already suspect, loses even more of its meaning.</p>
</dd>
</li>
<dt><strong><a name="item_binary_operator">binary operator</a></strong>
<dd>
<p>An <a href="#item_operator">operator</a> that takes two <a href="#item_operand">operands</a>.</p>
</dd>
</li>
<dt><strong><a name="item_bind">bind</a></strong>
<dd>
<p>To assign a specific <a href="#item_network_address">network address</a> to a <a href="#item_socket">socket</a>.</p>
</dd>
</li>
<dt><strong><a name="item_bit">bit</a></strong>
<dd>
<p>An integer in the range from 0 to 1, inclusive. The smallest possible
unit of information storage. An eighth of a <a href="#item_byte">byte</a> or of a dollar.
(The term "Pieces of Eight" comes from being able to split the old
Spanish dollar into 8 bits, each of which still counted for money.
That's why a 25-cent piece today is still "two bits".)</p>
</dd>
</li>
<dt><strong><a name="item_bit_shift">bit shift</a></strong>
<dd>
<p>The movement of bits left or right in a computer word, which has the
effect of multiplying or dividing by a power of 2.</p>
</dd>
</li>
<dt><strong><a name="item_bit_string">bit string</a></strong>
<dd>
<p>A sequence of <a href="#item_bit">bits</a> that is actually being thought of as a
sequence of bits, for once.</p>
</dd>
</li>
<dt><strong><a name="item_bless">bless</a></strong>
<dd>
<p>In corporate life, to grant official approval to a thing, as in, "The
VP of Engineering has blessed our WebCruncher project." Similarly in
Perl, to grant official approval to a <a href="#item_referent">referent</a> so that it can
function as an <a href="#item_object">object</a>, such as a WebCruncher object. See
<a href="../../lib/Pod/perlfunc.html#bless">bless in the perlfunc manpage</a>.</p>
</dd>
</li>
<dt><strong><a name="item_block">block</a></strong>
<dd>
<p>What a <a href="#item_process">process</a> does when it has to wait for something: "My process
blocked waiting for the disk." As an unrelated noun, it refers to a
large chunk of data, of a size that the <a href="#item_operating_system">operating system</a> likes to
deal with (normally a power of two such as 512 or 8192). Typically
refers to a chunk of data that's coming from or going to a disk file.</p>
</dd>
</li>
<dt><strong><a name="item_block">BLOCK</a></strong>
<dd>
<p>A syntactic construct consisting of a sequence of Perl
<a href="#item_statement">statements</a> that is delimited by braces. The <code>if</code> and
<code>while</code> statements are defined in terms of <a href="#item_block">BLOCKs</a>, for instance.
Sometimes we also say "block" to mean a lexical scope; that is, a
sequence of statements that act like a <a href="#item_block">BLOCK</a>, such as within an
<a href="../../lib/Pod/perlfunc.html#eval">eval</a> or a file, even though the statements aren't
delimited by braces.</p>
</dd>
</li>
<dt><strong><a name="item_block_buffering">block buffering</a></strong>
<dd>
<p>A method of making input and output efficient by passing one <a href="#item_block">block</a>
at a time. By default, Perl does block buffering to disk files. See
<a href="#item_buffer">buffer</a> and <a href="#item_command_buffering">command buffering</a>.</p>
</dd>
</li>
<dt><strong><a name="item_boolean">Boolean</a></strong>
<dd>
<p>A value that is either <a href="#item_true">true</a> or <a href="#item_false">false</a>.</p>
</dd>
</li>
<dt><strong><a name="item_boolean_context">Boolean context</a></strong>
<dd>
<p>A special kind of <a href="#item_scalar_context">scalar context</a> used in conditionals to decide
whether the <a href="#item_scalar_value">scalar value</a> returned by an expression is <a href="#item_true">true</a> or
<a href="#item_false">false</a>. Does not evaluate as either a string or a number. See
<a href="#item_context">context</a>.</p>
</dd>
</li>
<dt><strong><a name="item_breakpoint">breakpoint</a></strong>
<dd>
<p>A spot in your program where you've told the debugger to stop
<a href="#item_execute">execution</a> so you can poke around and see whether anything
is wrong yet.</p>
</dd>
</li>
<dt><strong><a name="item_broadcast">broadcast</a></strong>
<dd>
<p>To send a <a href="#item_datagram">datagram</a> to multiple destinations simultaneously.</p>
</dd>
</li>
<dt><strong><a name="item_bsd">BSD</a></strong>
<dd>
<p>A psychoactive drug, popular in the 80s, probably developed at
U. C. Berkeley or thereabouts. Similar in many ways to the
prescription-only medication called "System V", but infinitely more
useful. (Or, at least, more fun.) The full chemical name is
"Berkeley Standard Distribution".</p>
</dd>
</li>
<dt><strong><a name="item_bucket">bucket</a></strong>
<dd>
<p>A location in a <a href="#item_hash_table">hash table</a> containing (potentially) multiple
entries whose keys "hash" to the same hash value according to its hash
function. (As internal policy, you don't have to worry about it,
unless you're into internals, or policy.)</p>
</dd>
</li>
<dt><strong><a name="item_buffer">buffer</a></strong>
<dd>
<p>A temporary holding location for data. <a href="#item_block_buffering">Block buffering</a> means that the data is passed on to its destination
whenever the buffer is full. <a href="#item_line_buffering">Line buffering</a> means
that it's passed on whenever a complete line is received. <a href="#item_command_buffering">Command buffering</a> means that it's passed every time you do
a <a href="../../lib/Pod/perlfunc.html#print">print</a> command (or equivalent). If your output is
unbuffered, the system processes it one byte at a time without the use
of a holding area. This can be rather inefficient.</p>
</dd>
</li>
<dt><strong><a name="item_built_2din">built-in</a></strong>
<dd>
<p>A <a href="#item_function">function</a> that is predefined in the language. Even when hidden
by <a href="#item_overriding">overriding</a>, you can always get at a built-in function by
<a href="#item_qualified">qualifying</a> its name with the <code>CORE::</code> pseudo-package.</p>
</dd>
</li>
<dt><strong><a name="item_bundle">bundle</a></strong>
<dd>
<p>A group of related modules on <a href="#item_cpan">CPAN</a>. (Also, sometimes refers to a
group of command-line switches grouped into one <a href="#item_switch_cluster">switch cluster</a>.)</p>
</dd>
</li>
<dt><strong><a name="item_byte">byte</a></strong>
<dd>
<p>A piece of data worth eight <a href="#item_bit">bits</a> in most places.</p>
</dd>
</li>
<dt><strong><a name="item_bytecode">bytecode</a></strong>
<dd>
<p>A pidgin-like language spoken among 'droids when they don't wish to
reveal their orientation (see <a href="#item_endian">endian</a>). Named after some similar
languages spoken (for similar reasons) between compilers and
interpreters in the late 20th century. These languages are
characterized by representing everything as a
non-architecture-dependent sequence of bytes.</p>
</dd>
</li>
</dl>
<p>
</p>
<h2><a name="c">C</a></h2>
<dl>
<dt><strong><a name="item_c">C</a></strong>
<dd>
<p>A language beloved by many for its inside-out <a href="#item_type">type</a> definitions,
inscrutable <a href="#item_precedence">precedence</a> rules, and heavy <a href="#item_overloading">overloading</a> of the
function-call mechanism. (Well, actually, people first switched to C
because they found lowercase identifiers easier to read than upper.)
Perl is written in C, so it's not surprising that Perl borrowed a few
ideas from it.</p>
</dd>
</li>
<dt><strong><a name="item_c_preprocessor">C preprocessor</a></strong>
<dd>
<p>The typical C compiler's first pass, which processes lines beginning
with <code>#</code> for conditional compilation and macro definition and does
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?