📄 gloss.htm
字号:
<dd><p><a name="INDEX-"></a><a name="INDEX-"></a>Stands for "Data Base Management" routines, a set of routines thatemulate an <em class="emphasis">associative array</em> using disk files.The routines use a dynamic hashing scheme to locate any entry withonly two disk accesses. DBM files allow a Perl program to keep apersistent <em class="emphasis">hash</em> across multiple invocations. Youcan <tt class="literal">tie</tt> your hash variables to various DBMimplementations--see <em class="emphasis">AnyDBM_File</em>(3) andthe entry on <tt class="literal">DB_File</tt> in <a href="ch32_01.htm">Chapter 32, "Standard Modules"</a>.</p></dd></dl><dl><dt>declaration</dt><dd><p><a name="INDEX-"></a>An <em class="emphasis">assertion</em> that states something exists andperhaps describes what it's like, without giving any commitment asto how or where you'll use it. A declaration is like the part ofyour recipe that says, "two cups flour, one large egg, four orfive tadpoles..." See <em class="emphasis">statement</em>for its opposite. Note that some declarations also function asstatements. Subroutine declarations also act as definitions ifa body is supplied.</p></dd></dl><dl><dt>decrement</dt><dd><p><a name="INDEX-"></a>To subtract a value from a variable, as in "decrement <tt class="literal">$x</tt>"(meaning to remove 1 from its value) or "decrement <tt class="literal">$x</tt> by 3".</p></dd></dl><dl><dt>default</dt><dd><p><a name="INDEX-"></a>A <em class="emphasis">value</em> chosen for you if you don't supply avalue of your own.</p></dd></dl><dl><dt>defined</dt><dd><p><a name="INDEX-"></a><a name="INDEX-"></a>Having a meaning. Perl thinks that some of the things people try todo are devoid of meaning, in particular, making use of variables thathave never been given a <em class="emphasis">value</em> and performingcertain operations on data that isn't there. For example, if you tryto read data past the end of a file, Perl will hand you back anundefined value. See also <em class="emphasis">false</em>, and the<tt class="literal">defined</tt> operator in <a href="ch29_01.htm">Chapter 29, "Functions"</a>.</p></dd></dl><dl><dt>delimiter</dt><dd><p><a name="INDEX-"></a>A <em class="emphasis">character</em> or <em class="emphasis">string</em> thatsets bounds to an arbitrarily-sized textual object, not to be confusedwith a <em class="emphasis">separator</em> or<em class="emphasis">terminator</em>. "To delimit" really just means "tosurround" or "to enclose" (like these parentheses are doing).</p></dd></dl><dl><dt>dereference</dt><dd><p><a name="INDEX-"></a>A fancy computer science term meaning "to follow a<em class="emphasis">reference</em> to what itpoints to". The "de" part of it refers to the fact that you'retaking away one level of <em class="emphasis">indirection</em>.</p></dd></dl><dl><dt>derived class</dt><dd><p><a name="INDEX-"></a><a name="INDEX-"></a>A <em class="emphasis">class</em> that defines some of its<em class="emphasis">methods</em> in terms of a more genericclass, called a <em class="emphasis">base class</em>. Note that classesaren't classifiedexclusively into base classes or derived classes: a class can functionas both a derived class and a base class simultaneously, which is kindof classy.</p></dd></dl><dl><dt>descriptor</dt><dd><p>See <em class="emphasis">file descriptor</em>.<a name="INDEX-"></a></p></dd></dl><dl><dt>destroy</dt><dd><p><a name="INDEX-"></a>To deallocate the memory of a <em class="emphasis">referent</em>(first triggering its <tt class="literal">DESTROY</tt>method, if it has one).</p></dd></dl><dl><dt>destructor</dt><dd><p><a name="INDEX-"></a>A special <em class="emphasis">method</em> that is called when an<em class="emphasis">object</em> is thinking about<em class="emphasis">destroying</em> itself. A Perl program's<tt class="literal">DESTROY</tt> method doesn't do the actual destruction;Perl just <em class="emphasis">triggers</em> the method in case the<em class="emphasis">class</em> wants to do any associated cleanup.</p></dd></dl><dl><dt>device</dt><dd><p><a name="INDEX-"></a><a name="INDEX-"></a>A whiz-bang hardware gizmo (like a disk or tape drive or a modem or ajoystick or a mouse) attached to your computer, that the<em class="emphasis">operating system</em> tries to make look like a<em class="emphasis">file</em> (or a bunch of files). Under Unix, thesefake files tend to live in the <em class="emphasis">/dev</em> directory.</p></dd></dl><dl><dt>directive</dt><dd><p><a name="INDEX-"></a><a name="INDEX-"></a>A <em class="emphasis">pod</em> directive. See<a href="ch26_01.htm">Chapter 26, "Plain Old Documentation"</a>.</p></dd></dl><dl><dt>directory</dt><dd><p>A special file that contains other files. Some <em class="emphasis">operating systems</em> callthese "folders", "drawers", or "catalogs".</p></dd></dl><dl><dt>directory handle</dt><dd><p><a name="INDEX-"></a><a name="INDEX-"></a>A name that represents a particular instance of opening a directoryto read it, until you close it. See the <tt class="literal">opendir</tt> function.</p></dd></dl><dl><dt>dispatch</dt><dd><p>To send something to its correct destination. Often usedmetaphorically to indicate a transfer of programmatic control to adestination selected algorithmically, often by lookup in a table offunction <em class="emphasis">references</em> or, in the case of object <em class="emphasis">methods</em>, by traversingthe inheritance tree looking for the most specific definition forthe method.</p></dd></dl><dl><dt>distribution</dt><dd><p>A standard, bundled release of a system of software. The default usageimplies source code is included. If that is not the case, it willbe called a "binary-only" distribution.</p></dd></dl><dl><dt>dweomer</dt><dd><p><a name="INDEX-"></a>An enchantment, illusion, phantasm, or jugglery. Said when Perl'smagical <em class="emphasis">dwimmer</em> effects don't do what you expect,but rather seem to be the product of arcane dweomercraft, sorcery, orwonder working. [From Old English]</p></dd></dl><dl><dt>dwimmer</dt><dd><p><a name="INDEX-"></a>DWIM is an acronym for "Do What I Mean", the principle that somethingshould just do what you want it to do without an undue amount of fuss.A bit of code that does "dwimming" is a "dwimmer". Dwimming canrequire a great deal of behind-the-scenes magic, which (if it doesn'tstay properly behind the scenes) is called a <em class="emphasis">dweomer</em>instead.</p></dd></dl><dl><dt>dynamic scoping</dt><dd><p><a name="INDEX-"></a><a name="INDEX-"></a>Dynamic scoping works over a dynamic scope, making variables visiblethroughout the rest of the <em class="emphasis">block</em> in which theyare first used and in any <em class="emphasis">subroutines</em> that arecalled by the rest of the block. Dynamically scoped variables canhave their values temporarily changed (and implicitly restored later)by a <tt class="literal">local</tt> operator. (Compare <em class="emphasis">lexicalscoping</em>.) Used more loosely to mean how a subroutine thatis in the middle of calling another subroutine "contains" thatsubroutine at <em class="emphasis">run time</em>.</p></dd></dl><dl><dt>eclectic</dt><dd><p>Derived from many sources. Some would say <em class="emphasis">too</em> many.</p></dd></dl><dl><dt>element</dt><dd><p><a name="INDEX-"></a>A basic building block. When you're talking about an <em class="emphasis">array</em>, it's oneof the items that make up the array.</p></dd></dl><dl><dt>embedding</dt><dd><p><a name="INDEX-"></a>When something is contained in something else, particularly when thatmight be considered surprising: "I've embedded a complete Perlinterpreter in my editor!"</p></dd></dl><dl><dt>empty subclass test</dt><dd><p><a name="INDEX-"></a><a name="INDEX-"></a>The notion that an empty <em class="emphasis">derived class</em> should behave exactly like its<em class="emphasis">base class</em>.</p></dd></dl><dl><dt>en passant</dt><dd><p><a name="INDEX-"></a>When you change a <em class="emphasis">value</em> as it is being copied. [From French, "in passing",as in the exotic pawn-capturing maneuver in chess.]</p></dd></dl><dl><dt>encapsulation</dt><dd><p><a name="INDEX-"></a>The veil of abstraction separating the <em class="emphasis">interface</em>from the <em class="emphasis">implementation</em> (whether enforced ornot), which mandates that all access to an<em class="emphasis">object</em>'s state be through<em class="emphasis">methods</em> alone.</p></dd></dl><dl><dt>endian</dt><dd><p>See <em class="emphasis">little-endian</em> and <em class="emphasis">big-endian</em>.</p></dd></dl><dl><dt>environment</dt><dd><p><a name="INDEX-"></a>The collective set of <em class="emphasis">environment variables</em> your <em class="emphasis">process</em> inheritsfrom its parent. Accessed via <tt class="literal">%ENV</tt>.</p></dd></dl><dl><dt>environment variable</dt><dd><p><a name="INDEX-"></a>A mechanism by which some high-level agent such as a user can passits preferences down to its future offspring (child <em class="emphasis">processes</em>,grandchild processes, great-grandchild processes, and so on). Eachenvironment variable is a<em class="emphasis">key</em>/<em class="emphasis">value</em> pair, like one entryin a <em class="emphasis">hash</em>.</p></dd></dl><dl><dt>EOF</dt><dd><p><a name="INDEX-"></a><a name="INDEX-"></a><a name="INDEX-"></a>End of File. Sometimes used metaphorically as the terminatingstring of a <em class="emphasis">here document</em>.</p></dd></dl><dl><dt>errno</dt><dd><p><a name="INDEX-"></a><a name="INDEX-"></a><a name="INDEX-"></a>The error number returned by a <em class="emphasis">syscall</em> when it fails. Perlrefers to the error by the name <tt class="literal">$!</tt> (or <tt class="literal">$OS_ERROR</tt> if youuse the English module).</p></dd></dl><dl><dt>error</dt><dd><p>See <em class="emphasis">exception</em> or <em class="emphasis">fatal error</em>.</p></dd></dl><dl><dt>escape sequence</dt><dd><p>See <em class="emphasis">metasymbol</em>.</p></dd></dl><dl><dt>exception</dt><dd><p><a name="INDEX-"></a><a name="INDEX-"></a>A fancy term for an error. See <em class="emphasis">fatal error</em>.</p></dd></dl><dl><dt>exception handling</dt><dd><p>The way a program responds to an error.The exception handling mechanism in Perl is the <tt class="literal">eval</tt> operator.</p></dd></dl><dl><dt>exec</dt><dd><p><a name="INDEX-"></a>To throw away the current <em class="emphasis">process</em>'s programand replace it with another without exiting the process or relinquishingany resources held (apart from the old memory image).</p></dd></dl><dl><dt>executable file</dt><dd><p><a name="INDEX-"></a><a name="INDEX-"></a>A <em class="emphasis">file</em> that is specially marked to tell the <em class="emphasis">operating system</em>that it's okay to run this file as a program. Usually shortened to"executable".</p></dd></dl><dl><dt>execute</dt><dd><p><a name="INDEX-"></a><a name="INDEX-"></a>To run a <em class="emphasis">program</em> or<em class="emphasis">subroutine</em>. (Has nothing to do with the<tt class="literal">kill</tt> built-in, unless you're trying to runa <em class="emphasis">signal handler</em>.)</p></dd></dl><dl><dt>execute bit</dt><dd><p><a name="INDEX-"></a><a name="INDEX-"></a>The special mark that tells the operating system it can run thisprogram. There are actually three execute bits under Unix, and whichbit gets used depends on whether you own the file singularly,collectively, or not at all.</p></dd></dl><dl><dt>exit status</dt><dd><p>See <em class="emphasis">status</em>.</p></dd></dl><dl>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -