perlglossary.html

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

HTML
1,506 行
字号
<p>When something is contained in something else, particularly when that
might be considered surprising: &quot;I've embedded a complete Perl
interpreter in my editor!&quot;</p>
</dd>
</li>
<dt><strong><a name="item_empty_subclass_test">empty subclass test</a></strong>

<dd>
<p>The notion that an empty <a href="#item_derived_class">derived class</a> should behave exactly like
its <a href="#item_base_class">base class</a>.</p>
</dd>
</li>
<dt><strong><a name="item_en_passant">en passant</a></strong>

<dd>
<p>When you change a <a href="#item_value">value</a> as it is being copied.  [From French, &quot;in
passing&quot;, as in the exotic pawn-capturing maneuver in chess.]</p>
</dd>
</li>
<dt><strong><a name="item_encapsulation">encapsulation</a></strong>

<dd>
<p>The veil of abstraction separating the <a href="#item_interface">interface</a> from the
<a href="#item_implementation">implementation</a> (whether enforced or not), which mandates that all
access to an <a href="#item_object">object</a>'s state be through <a href="#item_method">methods</a> alone.</p>
</dd>
</li>
<dt><strong><a name="item_endian">endian</a></strong>

<dd>
<p>See <a href="#item_little_2dendian">little-endian</a> and <a href="#item_big_2dendian">big-endian</a>.</p>
</dd>
</li>
<dt><strong><a name="item_environment">environment</a></strong>

<dd>
<p>The collective set of <a href="#item_environment_variable">environment variables</a>
your <a href="#item_process">process</a> inherits from its parent.  Accessed via <a href="../../lib/Pod/perlvar.html#item__env"><code>%ENV</code></a>.</p>
</dd>
</li>
<dt><strong><a name="item_environment_variable">environment variable</a></strong>

<dd>
<p>A mechanism by which some high-level agent such as a user can pass its
preferences down to its future offspring (child <a href="#item_process">processes</a>,
grandchild processes, great-grandchild processes, and so on).  Each
environment variable is a <a href="#item_key">key</a>/<a href="#item_value">value</a> pair, like one entry in a
<a href="#item_hash">hash</a>.</p>
</dd>
</li>
<dt><strong><a name="item_eof">EOF</a></strong>

<dd>
<p>End of File.  Sometimes used metaphorically as the terminating string
of a <a href="#item_here_document">here document</a>.</p>
</dd>
</li>
<dt><strong><a name="item_errno">errno</a></strong>

<dd>
<p>The error number returned by a <a href="#item_syscall">syscall</a> when it fails.  Perl refers
to the error by the name <a href="../../lib/Pod/perlvar.html#item___"><code>$!</code></a> (or <a href="../../lib/Pod/perlvar.html#item__os_error"><code>$OS_ERROR</code></a> if you use the English
module).</p>
</dd>
</li>
<dt><strong><a name="item_error">error</a></strong>

<dd>
<p>See <a href="#item_exception">exception</a> or <a href="#item_fatal_error">fatal error</a>.</p>
</dd>
</li>
<dt><strong><a name="item_escape_sequence">escape sequence</a></strong>

<dd>
<p>See <a href="#item_metasymbol">metasymbol</a>.</p>
</dd>
</li>
<dt><strong><a name="item_exception">exception</a></strong>

<dd>
<p>A fancy term for an error.  See <a href="#item_fatal_error">fatal error</a>.</p>
</dd>
</li>
<dt><strong><a name="item_exception_handling">exception handling</a></strong>

<dd>
<p>The way a program responds to an error.  The exception handling
mechanism in Perl is the <a href="../../lib/Pod/perlfunc.html#eval">eval</a> operator.</p>
</dd>
</li>
<dt><strong><a name="item_exec">exec</a></strong>

<dd>
<p>To throw away the current <a href="#item_process">process</a>'s program and replace it with
another without exiting the process or relinquishing any resources
held (apart from the old memory image).</p>
</dd>
</li>
<dt><strong><a name="item_executable_file">executable file</a></strong>

<dd>
<p>A <a href="#item_file">file</a> that is specially marked to tell the <a href="#item_operating_system">operating system</a>
that it's okay to run this file as a program.  Usually shortened to
&quot;executable&quot;.</p>
</dd>
</li>
<dt><strong><a name="item_execute">execute</a></strong>

<dd>
<p>To run a <a href="#item_executable_file">program</a> or <a href="#item_subroutine">subroutine</a>.  (Has nothing
to do with the <a href="../../lib/Pod/perlfunc.html#kill">kill</a> built-in, unless you're trying to
run a <a href="#item_signal_handler">signal handler</a>.)</p>
</dd>
</li>
<dt><strong><a name="item_execute_bit">execute bit</a></strong>

<dd>
<p>The special mark that tells the operating system it can run this
program.  There are actually three execute bits under Unix, and which
bit gets used depends on whether you own the file singularly,
collectively, or not at all.</p>
</dd>
</li>
<dt><strong><a name="item_exit_status">exit status</a></strong>

<dd>
<p>See <a href="#item_status">status</a>.</p>
</dd>
</li>
<dt><strong><a name="item_export">export</a></strong>

<dd>
<p>To make symbols from a <a href="#item_module">module</a> available for <a href="#item_import">import</a> by other modules.</p>
</dd>
</li>
<dt><strong><a name="item_expression">expression</a></strong>

<dd>
<p>Anything you can legally say in a spot where a <a href="#item_value">value</a> is required.
Typically composed of <a href="#item_literal">literals</a>, <a href="#item_variable">variables</a>,
<a href="#item_operator">operators</a>, <a href="#item_function">functions</a>, and <a href="#item_subroutine">subroutine</a>
calls, not necessarily in that order.</p>
</dd>
</li>
<dt><strong><a name="item_extension">extension</a></strong>

<dd>
<p>A Perl module that also pulls in compiled C or C++ code.  More
generally, any experimental option that can be compiled into Perl,
such as multithreading.</p>
</dd>
</li>
</dl>
<p>
</p>
<h2><a name="f">F</a></h2>
<dl>
<dt><strong><a name="item_false">false</a></strong>

<dd>
<p>In Perl, any value that would look like <code>&quot;&quot;</code> or <code>&quot;0&quot;</code> if evaluated
in a string context.  Since undefined values evaluate to <code>&quot;&quot;</code>, all
undefined values are false, but not all false values are undefined.</p>
</dd>
</li>
<dt><strong><a name="item_faq">FAQ</a></strong>

<dd>
<p>Frequently Asked Question (although not necessarily frequently
answered, especially if the answer appears in the Perl FAQ shipped
standard with Perl).</p>
</dd>
</li>
<dt><strong><a name="item_fatal_error">fatal error</a></strong>

<dd>
<p>An uncaught <a href="#item_exception">exception</a>, which causes termination of the <a href="#item_process">process</a>
after printing a message on your <a href="#item_standard_error">standard error</a> stream.  Errors
that happen inside an <a href="../../lib/Pod/perlfunc.html#eval">eval</a> are not fatal.  Instead,
the <a href="../../lib/Pod/perlfunc.html#eval">eval</a> terminates after placing the exception
message in the <a href="../../lib/Pod/perlvar.html#item___"><code>$@</code></a> (<a href="../../lib/Pod/perlvar.html#item__eval_error"><code>$EVAL_ERROR</code></a>) variable.  You can try to
provoke a fatal error with the <a href="../../lib/Pod/perlfunc.html#die">die</a> operator (known as
throwing or raising an exception), but this may be caught by a
dynamically enclosing <a href="../../lib/Pod/perlfunc.html#eval">eval</a>.  If not caught, the
<a href="../../lib/Pod/perlfunc.html#die">die</a> becomes a fatal error.</p>
</dd>
</li>
<dt><strong><a name="item_field">field</a></strong>

<dd>
<p>A single piece of numeric or string data that is part of a longer
<a href="#item_string">string</a>, <a href="#item_record">record</a>, or <a href="#item_line">line</a>.  Variable-width fields are usually
split up by <a href="#item_separator">separators</a> (so use <a href="../../lib/Pod/perlfunc.html#split">split</a> to
extract the fields), while fixed-width fields are usually at fixed
positions (so use <a href="../../lib/Pod/perlfunc.html#unpack">unpack</a>).  <a href="#item_instance_variable">Instance variables</a> are also known as fields.</p>
</dd>
</li>
<dt><strong><a name="item_fifo">FIFO</a></strong>

<dd>
<p>First In, First Out.  See also <a href="#item_lifo">LIFO</a>.  Also, a nickname for a
<a href="#item_named_pipe">named pipe</a>.</p>
</dd>
</li>
<dt><strong><a name="item_file">file</a></strong>

<dd>
<p>A named collection of data, usually stored on disk in a <a href="#item_directory">directory</a>
in a <a href="#item_filesystem">filesystem</a>.  Roughly like a document, if you're into office
metaphors.  In modern filesystems, you can actually give a file more
than one name.  Some files have special properties, like directories
and devices.</p>
</dd>
</li>
<dt><strong><a name="item_file_descriptor">file descriptor</a></strong>

<dd>
<p>The little number the <a href="#item_operating_system">operating system</a> uses to keep track of which
opened <a href="#item_file">file</a> you're talking about.  Perl hides the file descriptor
inside a <a href="#standard_ie_sol_o">standard I&sol;O</a> stream and then attaches the stream to
a <a href="#item_filehandle">filehandle</a>.</p>
</dd>
</li>
<dt><strong><a name="item_file_test_operator">file test operator</a></strong>

<dd>
<p>A built-in unary operator that you use to determine whether something
is <a href="#item_true">true</a> about a file, such as <code>-o $filename</code> to test whether
you're the owner of the file.</p>
</dd>
</li>
<dt><strong><a name="item_fileglob">fileglob</a></strong>

<dd>
<p>A &quot;wildcard&quot; match on <a href="#item_filename">filenames</a>.  See the
<a href="../../lib/Pod/perlfunc.html#glob">glob</a> function.</p>
</dd>
</li>
<dt><strong><a name="item_filehandle">filehandle</a></strong>

<dd>
<p>An identifier (not necessarily related to the real name of a file)
that represents a particular instance of opening a file until you
close it.  If you're going to open and close several different files
in succession, it's fine to open each of them with the same
filehandle, so you don't have to write out separate code to process
each file.</p>
</dd>
</li>
<dt><strong><a name="item_filename">filename</a></strong>

<dd>
<p>One name for a file.  This name is listed in a <a href="#item_directory">directory</a>, and you
can use it in an <a href="../../lib/Pod/perlfunc.html#open">open</a> to tell the <a href="#item_operating_system">operating system</a> exactly which file you want to open, and associate the file
with a <a href="#item_filehandle">filehandle</a> which will carry the subsequent identity of that
file in your program, until you close it.</p>
</dd>
</li>
<dt><strong><a name="item_filesystem">filesystem</a></strong>

<dd>
<p>A set of <a href="#item_directory">directories</a> and <a href="#item_file">files</a> residing on a
partition of the disk.  Sometimes known as a &quot;partition&quot;.  You can
change the file's name or even move a file around from directory to
directory within a filesystem without actually moving the file itself,
at least under Unix.</p>
</dd>
</li>
<dt><strong><a name="item_filter">filter</a></strong>

<dd>
<p>A program designed to take a <a href="#item_stream">stream</a> of input and transform it into
a stream of output.</p>
</dd>
</li>
<dt><strong><a name="item_flag">flag</a></strong>

<dd>
<p>We tend to avoid this term because it means so many things.  It may
mean a command-line <a href="#item_switch">switch</a> that takes no argument
itself (such as Perl's <strong>-n</strong> and <strong>-p</strong>
flags) or, less frequently, a single-bit indicator (such as the
<code>O_CREAT</code> and <code>O_EXCL</code> flags used in
<a href="../../lib/Pod/perlfunc.html#sysopen">sysopen</a>).</p>
</dd>
</li>
<dt><strong><a name="item_floating_point">floating point</a></strong>

<dd>
<p>A method of storing numbers in &quot;scientific notation&quot;, such that the
precision of the number is independent of its magnitude (the decimal
point &quot;floats&quot;).  Perl does its numeric work with floating-point
numbers (sometimes called &quot;floats&quot;), when it can't get away with
using <a href="#item_integer">integers</a>.  Floating-point numbers are mere
approximations of real numbers.</p>
</dd>
</li>
<dt><stro

⌨️ 快捷键说明

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