perlglossary.pod

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

POD
1,930
字号
=item flushThe act of emptying a L</buffer>, often before it's full.=item FMTEYEWTKFar More Than Everything You Ever Wanted To Know.  An exhaustivetreatise on one narrow topic, something of a super-L</FAQ>.  See Tomfor far more.=item forkTo create a child L</process> identical to the parent process at itsmoment of conception, at least until it gets ideas of its own.  Athread with protected memory.=item formal argumentsThe generic names by which a L</subroutine> knows itsL<arguments|/argument>.  In many languages, formal arguments arealways given individual names, but in Perl, the formal arguments arejust the elements of an array.  The formal arguments to a Perl programare C<$ARGV[0]>, C<$ARGV[1]>, and so on.  Similarly, the formalarguments to a Perl subroutine are C<$_[0]>, C<$_[1]>, and so on.  Youmay give the arguments individual names by assigning the values to aL<my|perlfunc/my> list.  See also L</actual arguments>.=item formatA specification of how many spaces and digits and things to putsomewhere so that whatever you're printing comes out nice and pretty.=item freely availableMeans you don't have to pay money to get it, but the copyright on itmay still belong to someone else (like Larry).=item freely redistributableMeans you're not in legal trouble if you give a bootleg copy of it toyour friends and we find out about it.  In fact, we'd rather you gavea copy to all your friends.=item freewareHistorically, any software that you give away, particularly if youmake the source code available as well.  Now often called C<opensource software>.  Recently there has been a trend to use the term incontradistinction to L</open source software>, to refer only to freesoftware released under the Free Software Foundation's GPL (GeneralPublic License), but this is difficult to justify etymologically.=item functionMathematically, a mapping of each of a set of input values to aparticular output value.  In computers, refers to a L</subroutine> orL</operator> that returns a L</value>.  It may or may not have inputvalues (called L<arguments|/argument>).=item funny characterSomeone like Larry, or one of his peculiar friends.  Also refers tothe strange prefixes that Perl requires as noun markers on itsvariables.=item garbage collectionA misnamed feature--it should be called, "expecting your mother topick up after you".  Strictly speaking, Perl doesn't do this, but itrelies on a reference-counting mechanism to keep things tidy.However, we rarely speak strictly and will often refer to thereference-counting scheme as a form of garbage collection.  (If it'sany comfort, when your interpreter exits, a "real" garbage collectorruns to make sure everything is cleaned up if you've been messy withcircular references and such.)=back=head2 G=over 4=item GIDGroup ID--in Unix, the numeric group ID that the L</operating system>uses to identify you and members of your L</group>.=item globStrictly, the shell's C<*> character, which will match a "glob" ofcharacters when you're trying to generate a list of filenames.Loosely, the act of using globs and similar symbols to do patternmatching.  See also L</fileglob> and L</typeglob>.=item globalSomething you can see from anywhere, usually used ofL<variables|/variable> and L<subroutines|/subroutine> that are visibleeverywhere in your program.  In Perl, only certain special variablesare truly global--most variables (and all subroutines) exist only inthe current L</package>.  Global variables can be declared withL<our|perlfunc/our>.  See L<perlfunc/our>.=item global destructionThe L</garbage collection> of globals (and the running of anyassociated object destructors) that takes place when a PerlL</interpreter> is being shut down.  Global destruction should not beconfused with the Apocalypse, except perhaps when it should.=item glue languageA language such as Perl that is good at hooking things together thatweren't intended to be hooked together.=item granularityThe size of the pieces you're dealing with, mentally speaking.=item greedyA L</subpattern> whose L</quantifier> wants to match as many things aspossible.=item grepOriginally from the old Unix editor command for "Globally search for aRegular Expression and Print it", now used in the general sense of anykind of search, especially text searches.  Perl has a built-inL<grep|perlfunc/grep> function that searches a list for elementsmatching any given criterion, whereas the I<grep>(1) program searchesfor lines matching a L</regular expression> in one or more files.=item groupA set of users of which you are a member.  In some operating systems(like Unix), you can give certain file access permissions to othermembers of your group.=item GVAn internal "glob value" typedef, holding a L</typeglob>.  The L</GV>type is a subclass of L</SV>.=back=head2 H=over 4=item hackerSomeone who is brilliantly persistent in solving technical problems,whether these involve golfing, fighting orcs, or programming.  Hackeris a neutral term, morally speaking.  Good hackers are not to beconfused with evil L<crackers|/cracker> or clueless L<scriptkiddies|/script kiddie>.  If you confuse them, we will presume thatyou are either evil or clueless.=item handlerA L</subroutine> or L</method> that is called by Perl when yourprogram needs to respond to some internal event, such as a L</signal>,or an encounter with an operator subject to L</operator overloading>.See also L</callback>.=item hard referenceA L</scalar> L</value> containing the actual address of aL</referent>, such that the referent's L</reference> count accountsfor it.  (Some hard references are held internally, such as theimplicit reference from one of a L</typeglob>'s variable slots to itscorresponding referent.)  A hard reference is different from aL</symbolic reference>.=item hashAn unordered association of L</key>/L</value> pairs, stored such thatyou can easily use a string L</key> to look up its associated dataL</value>.  This glossary is like a hash, where the word to be definedis the key, and the definition is the value.  A hash is also sometimesseptisyllabically called an "associative array", which is a prettygood reason for simply calling it a "hash" instead.=item hash tableA data structure used internally by Perl for implementing associativearrays (hashes) efficiently.  See also L</bucket>.=item header fileA file containing certain required definitions that you must include"ahead" of the rest of your program to do certain obscure operations.A C header file has a I<.h> extension.  Perl doesn't really haveheader files, though historically Perl has sometimes used translatedI<.h> files with a I<.ph> extension.  See L<perlfunc/require>.(Header files have been superseded by the L</module> mechanism.)=item here documentSo called because of a similar construct in L<shells|/shell> thatpretends that the L<lines|/line> following the L</command> are aseparate L</file> to be fed to the command, up to some terminatingstring.  In Perl, however, it's just a fancy form of quoting.=item hexadecimalA number in base 16, "hex" for short.  The digits for 10 through 16are customarily represented by the letters C<a> through C<f>.Hexadecimal constants in Perl start with C<0x>.  See alsoL<perlfunc/hex>.=item home directoryThe directory you are put into when you log in.  On a Unix system, thename is often placed into C<$ENV{HOME}> or C<$ENV{LOGDIR}> byI<login>, but you can also find it with C<(getpwuid($E<lt>))[7]>.(Some platforms do not have a concept of a home directory.)=item hostThe computer on which a program or other data resides.=item hubrisExcessive pride, the sort of thing Zeus zaps you for.  Also thequality that makes you write (and maintain) programs that other peoplewon't want to say bad things about.  Hence, the third great virtue ofa programmer.  See also L</laziness> and L</impatience>.=item HVShort for a "hash value" typedef, which holds Perl's internalrepresentation of a hash.  The L</HV> type is a subclass of L</SV>.=back=head2 I=over 4=item identifierA legally formed name for most anything in which a computer programmight be interested.  Many languages (including Perl) allowidentifiers that start with a letter and contain letters and digits.Perl also counts the underscore character as a valid letter.  (Perlalso has more complicated names, such as L</qualified> names.)=item impatienceThe anger you feel when the computer is being lazy.  This makes youwrite programs that don't just react to your needs, but actuallyanticipate them.  Or at least that pretend to.  Hence, the secondgreat virtue of a programmer.  See also L</laziness> and L</hubris>.=item implementationHow a piece of code actually goes about doing its job.  Users of thecode should not count on implementation details staying the sameunless they are part of the published L</interface>.=item importTo gain access to symbols that are exported from another module.  SeeL<perlfunc/use>.=item incrementTo increase the value of something by 1 (or by some other number, ifso specified).=item indexingIn olden days, the act of looking up a L</key> in an actual index(such as a phone book), but now merely the act of using any kind ofkey or position to find the corresponding L</value>, even if no indexis involved.  Things have degenerated to the point that Perl'sL<index|perlfunc/index> function merely locates the position (index)of one string in another.=item indirect filehandleAn L</expression> that evaluates to something that can be used as aL</filehandle>: a L</string> (filehandle name), a L</typeglob>, atypeglob L</reference>, or a low-level L</IO> object.=item indirect objectIn English grammar, a short noun phrase between a verb and its directobject indicating the beneficiary or recipient of the action.  InPerl, C<print STDOUT "$foo\n";> can be understood as "verbindirect-object object" where L</STDOUT> is the recipient of theL<print|perlfunc/print> action, and C<"$foo"> is the object beingprinted.  Similarly, when invoking a L</method>, you might place theinvocant between the method and its arguments:  $gollum = new Pathetic::Creature "Smeagol";  give $gollum "Fisssssh!";  give $gollum "Precious!";=item indirect object slotThe syntactic position falling between a method call and its argumentswhen using the indirect object invocation syntax.  (The slot isdistinguished by the absence of a comma between it and the nextargument.) L</STDERR> is in the indirect object slot here:  print STDERR "Awake!  Awake!  Fear, Fire,      Foes!  Awake!\n";=item indirectionIf something in a program isn't the value you're looking for butindicates where the value is, that's indirection.  This can be donewith either L<symbolic references|/symbolic reference> or L<hardreferences|/hard reference>.=item infixAn L</operator> that comes in between its L<operands|/operand>, suchas multiplication in C<24 * 7>.=item inheritanceWhat you get from your ancestors, genetically or otherwise.  If youhappen to be a L</class>, your ancestors are called L<baseclasses|/base class> and your descendants are called L<derivedclasses|/derived class>.  See L</single inheritance> and L</multipleinheritance>.=item instanceShort for "an instance of a class", meaning an L</object> of that L</class>.=item instance variableAn L</attribute> of an L</object>; data stored with the particularobject rather than with the class as a whole.=item integerA number with no fractional (decimal) part.  A counting number, like1, 2, 3, and so on, but including 0 and the negatives.=item interfaceThe services a piece of code promises to provide forever, in contrast toits L</implementation>, which it should feel free to change whenever itlikes.=item interpolationThe insertion of a scalar or list value somewhere in the middle ofanother value, such that it appears to have been there all along.  InPerl, variable interpolation happens in double-quoted strings andpatterns, and list interpolation occurs when constructing the list ofvalues to pass to a list operator or other such construct that takes aL</LIST>.=item interpreterStrictly speaking, a program that reads a second program and does whatthe second program says directly without turning the program into adifferent form first, which is what L<compilers|/compiler> do.  Perlis not an interpreter by this definition, because it contains a kindof compiler that takes a program and turns it into a more executableform (L<syntax trees|/syntax tree>) within the I<perl> process itself,which the Perl L</run time> system then interprets.=item invocantThe agent on whose behalf a L</method> is invoked.  In a L</class>method, the invocant is a package name.  In an L</instance> method,the invocant is an object reference.=item invocationThe act of calling up a deity, daemon, program, method, subroutine, orfunction to get it do what you think it's supposed to do.  We usually"call" subroutines but "invoke" methods, since it sounds cooler.=item I/OInput from, or output to, a L</file> or L</device>.

⌨️ 快捷键说明

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