perlglossary.pod

来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· POD 代码 · 共 1,930 行 · 第 1/5 页

POD
1,930
字号
=head1 NAMEperlglossary - Perl Glossary=head1 DESCRIPTIONA glossary of terms (technical and otherwise) used in the Perl documentation.Other useful sources include the Free On-Line Dictionary of ComputingL<http://foldoc.doc.ic.ac.uk/foldoc/index.html>, the Jargon FileL<http://catb.org/~esr/jargon/>, and Wikipedia L<http://www.wikipedia.org/>.=head2 A=over 4=item accessor methodsA L</method> used to indirectly inspect or update an L</object>'sstate (its L<instance variables|/instance variable>).=item actual argumentsThe L<scalar values|/scalar value> that you supply to a L</function>or L</subroutine> when you call it.  For instance, when you callC<power("puff")>, the string C<"puff"> is the actual argument.  Seealso L</argument> and L</formal arguments>.=item address operatorSome languages work directly with the memory addresses of values, butthis can be like playing with fire.  Perl provides a set of asbestosgloves for handling all memory management.  The closest to an addressoperator in Perl is the backslash operator, but it gives you a L</hardreference>, which is much safer than a memory address.=item algorithmA well-defined sequence of steps, clearly enough explained that even acomputer could do them.=item aliasA nickname for something, which behaves in all ways as though you'dused the original name instead of the nickname.  Temporary aliases areimplicitly created in the loop variable for C<foreach> loops, in theC<$_> variable for L<map|perlfunc/map> or L<grep|perlfunc/grep>operators, in C<$a> and C<$b> during L<sort|perlfunc/sort>'scomparison function, and in each element of C<@_> for the L</actualarguments> of a subroutine call.  Permanent aliases are explicitlycreated in L<packages|/package> by L<importing|/import> symbols or byassignment to L<typeglobs|/typeglob>.  Lexically scoped aliases forpackage variables are explicitly created by the L<our|perlfunc/our>declaration.=item alternativesA list of possible choices from which you may select only one, as in"Would you like door A, B, or C?"  Alternatives in regular expressionsare separated with a single vertical bar: C<|>.  Alternatives innormal Perl expressions are separated with a double vertical bar:C<||>.  Logical alternatives in L</Boolean> expressions are separatedwith either C<||> or C<or>.=item anonymousUsed to describe a L</referent> that is not directly accessiblethrough a named L</variable>.  Such a referent must be indirectlyaccessible through at least one L</hard reference>.  When the lasthard reference goes away, the anonymous referent is destroyed withoutpity.=item architectureThe kind of computer you're working on, where one "kind" of computermeans all those computers sharing a compatible machine language.Since Perl programs are (typically) simple text files, not executableimages, a Perl program is much less sensitive to the architecture it'srunning on than programs in other languages, such as C, that arecompiled into machine code.  See also L</platform> and L</operatingsystem>.=item argumentA piece of data supplied to a L<program|/executable file>,L</subroutine>, L</function>, or L</method> to tell it what it'ssupposed to do.  Also called a "parameter".=item ARGVThe name of the array containing the L</argument> L</vector> from thecommand line.  If you use the empty C<< E<lt>E<gt> >> operator, L</ARGV> isthe name of both the L</filehandle> used to traverse the arguments andthe L</scalar> containing the name of the current input file.=item arithmetical operatorA L</symbol> such as C<+> or C</> that tells Perl to do the arithmeticyou were supposed to learn in grade school.=item arrayAn ordered sequence of L<values|/value>, stored such that you caneasily access any of the values using an integer L</subscript>that specifies the value's L</offset> in the sequence.=item array contextAn archaic expression for what is more correctly referred to asL</list context>.=item ASCIIThe American Standard Code for Information Interchange (a 7-bitcharacter set adequate only for poorly representing English text).Often used loosely to describe the lowest 128 values of the variousISO-8859-X character sets, a bunch of mutually incompatible 8-bitcodes best described as half ASCII.  See also L</Unicode>.=item assertionA component of a L</regular expression> that must be true for thepattern to match but does not necessarily match any characters itself.Often used specifically to mean a L</zero width> assertion.=item assignmentAn L</operator> whose assigned mission in life is to change the valueof a L</variable>.=item assignment operatorEither a regular L</assignment>, or a compound L</operator> composedof an ordinary assignment and some other operator, that changes thevalue of a variable in place, that is, relative to its old value.  Forexample, C<$a += 2> adds C<2> to C<$a>.=item associative arraySee L</hash>.  Please.=item associativityDetermines whether you do the left L</operator> first or the rightL</operator> first when you have "A L</operator> B L</operator> C" andthe two operators are of the same precedence.  Operators like C<+> areleft associative, while operators like C<**> are right associative.See L<perlop> for a list of operators and their associativity.=item asynchronousSaid of events or activities whose relative temporal ordering isindeterminate because too many things are going on at once.  Hence, anasynchronous event is one you didn't know when to expect.=item atomA L</regular expression> component potentially matching aL</substring> containing one or more characters and treated as anindivisible syntactic unit by any following L</quantifier>.  (Contrastwith an L</assertion> that matches something of L</zero width> and maynot be quantified.)=item atomic operationWhen Democritus gave the word "atom" to the indivisible bits ofmatter, he meant literally something that could not be cut: I<a->(not) + I<tomos> (cuttable).  An atomic operation is an action thatcan't be interrupted, not one forbidden in a nuclear-free zone.=item attributeA new feature that allows the declaration of L<variables|/variable>and L<subroutines|/subroutine> with modifiers as in C<sub foo : lockedmethod>.  Also, another name for an L</instance variable> of anL</object>.=item autogenerationA feature of L</operator overloading> of L<objects|/object>, wherebythe behavior of certain L<operators|/operator> can be reasonablydeduced using more fundamental operators.  This assumes that theoverloaded operators will often have the same relationships as theregular operators.  See L<perlop>.=item autoincrementTo add one to something automatically, hence the name of the C<++>operator.  To instead subtract one from something automatically isknown as an "autodecrement".=item autoloadTo load on demand.  (Also called "lazy" loading.)  Specifically, tocall an L<AUTOLOAD|perlsub/Autoloading> subroutine on behalf of anundefined subroutine.=item autosplitTo split a string automatically, as the B<-a> L</switch> does whenrunning under B<-p> or B<-n> in order to emulate L</awk>.  (See alsothe L<AutoSplit> module, which has nothing to do with the B<-a>switch, but a lot to do with autoloading.)=item autovivificationA Greco-Roman word meaning "to bring oneself to life".  In Perl,storage locations (L<lvalues|/lvalue>) spontaneously generatethemselves as needed, including the creation of any L</hard reference>values to point to the next level of storage.  The assignmentC<$a[5][5][5][5][5] = "quintet"> potentially creates five scalarstorage locations, plus four references (in the first four scalarlocations) pointing to four new anonymous arrays (to hold the lastfour scalar locations).  But the point of autovivification is that youdon't have to worry about it.=item AVShort for "array value", which refers to one of Perl's internal datatypes that holds an L</array>.  The L</AV> type is a subclass ofL</SV>.=item awkDescriptive editing term--short for "awkward".  Also coincidentallyrefers to a venerable text-processing language from which Perl derivedsome of its high-level ideas.=back=head2 B=over 4=item backreferenceA substring L<captured|/capturing> by a subpattern withinunadorned parentheses in a L</regex>.  Backslashed decimal numbers(C<\1>, C<\2>, etc.)  later in the same pattern refer back to thecorresponding subpattern in the current match.  Outside the pattern,the numbered variables (C<$1>, C<$2>, etc.) continue to refer to thesesame values, as long as the pattern was the last successful match ofthe current dynamic scope.=item backtrackingThe practice of saying, "If I had to do it all over, I'd do itdifferently," and then actually going back and doing it all overdifferently.  Mathematically speaking, it's returning from anunsuccessful recursion on a tree of possibilities.  Perl backtrackswhen it attempts to match patterns with a L</regular expression>, andits earlier attempts don't pan out.  See L<perlre/Backtracking>.=item backward compatibilityMeans you can still run your old program because we didn't break anyof the features or bugs it was relying on.=item barewordA word sufficiently ambiguous to be deemed illegal under L<use strict'subs'|strict/strict subs>.  In the absence of that stricture, abareword is treated as if quotes were around it.=item base classA generic L</object> type; that is, a L</class> from which other, morespecific classes are derived genetically by L</inheritance>.  Alsocalled a "superclass" by people who respect their ancestors.=item big-endianFrom Swift: someone who eats eggs big end first.  Also used ofcomputers that store the most significant L</byte> of a word at alower byte address than the least significant byte.  Often consideredsuperior to little-endian machines.  See also L</little-endian>.=item binaryHaving to do with numbers represented in base 2.  That means there'sbasically two numbers, 0 and 1.  Also used to describe a "non-textfile", presumably because such a file makes full use of all the binarybits in its bytes.  With the advent of L</Unicode>, this distinction,already suspect, loses even more of its meaning.=item binary operatorAn L</operator> that takes two L<operands|/operand>.=item bindTo assign a specific L</network address> to a L</socket>.=item bitAn integer in the range from 0 to 1, inclusive.  The smallest possibleunit of information storage.  An eighth of a L</byte> or of a dollar.(The term "Pieces of Eight" comes from being able to split the oldSpanish dollar into 8 bits, each of which still counted for money.That's why a 25-cent piece today is still "two bits".)=item bit shiftThe movement of bits left or right in a computer word, which has theeffect of multiplying or dividing by a power of 2.=item bit stringA sequence of L<bits|/bit> that is actually being thought of as asequence of bits, for once.=item blessIn corporate life, to grant official approval to a thing, as in, "TheVP of Engineering has blessed our WebCruncher project." Similarly inPerl, to grant official approval to a L</referent> so that it canfunction as an L</object>, such as a WebCruncher object.  SeeL<perlfunc/"bless">.=item blockWhat a L</process> does when it has to wait for something: "My processblocked waiting for the disk."  As an unrelated noun, it refers to alarge chunk of data, of a size that the L</operating system> likes todeal with (normally a power of two such as 512 or 8192).  Typicallyrefers to a chunk of data that's coming from or going to a disk file.=item BLOCKA syntactic construct consisting of a sequence of PerlL<statements|/statement> that is delimited by braces.  The C<if> andC<while> statements are defined in terms of L<BLOCKs|/BLOCK>, for instance.Sometimes we also say "block" to mean a lexical scope; that is, asequence of statements that act like a L</BLOCK>, such as within anL<eval|perlfunc/eval> or a file, even though the statements aren'tdelimited by braces.=item block bufferingA method of making input and output efficient by passing one L</block>at a time.  By default, Perl does block buffering to disk files.  SeeL</buffer> and L</command buffering>.=item BooleanA value that is either L</true> or L</false>.=item Boolean contextA special kind of L</scalar context> used in conditionals to decidewhether the L</scalar value> returned by an expression is L</true> orL</false>.  Does not evaluate as either a string or a number.  SeeL</context>.=item breakpointA spot in your program where you've told the debugger to stopL<execution|/execute> so you can poke around and see whether anythingis wrong yet.=item broadcastTo send a L</datagram> to multiple destinations simultaneously.=item BSDA psychoactive drug, popular in the 80s, probably developed atU. C. Berkeley or thereabouts.  Similar in many ways to theprescription-only medication called "System V", but infinitely moreuseful.  (Or, at least, more fun.)  The full chemical name is"Berkeley Standard Distribution".=item bucketA location in a L</hash table> containing (potentially) multipleentries whose keys "hash" to the same hash value according to its hashfunction.  (As internal policy, you don't have to worry about it,unless you're into internals, or policy.)=item bufferA temporary holding location for data.  L<Block buffering|/blockbuffering> means that the data is passed on to its destinationwhenever the buffer is full.  L<Line buffering|/line buffering> meansthat it's passed on whenever a complete line is received.  L<Commandbuffering|/command buffering> means that it's passed every time you doa L<print|perlfunc/print> command (or equivalent).  If your output is

⌨️ 快捷键说明

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