Debian Codegraph @

upstream/mageia-cauldron/man1/perlglossary.1

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
20 .ie n \{\
21 . ds C` ""
22 . ds C' ""
23 'br\}
24 .el\{\
25 . ds C`
26 . ds C'
27 'br\}
28 .\"
29 .\" Escape single quotes in literal strings from groff's Unicode transform.
30 .ie \n(.g .ds Aq \(aq
31 .el .ds Aq '
32 .\"
33 .\" If the F register is >0, we'll generate index entries on stderr for
34 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
35 .\" entries marked with X<> in POD. Of course, you'll have to process the
36 .\" output yourself in some meaningful fashion.
37 .\"
38 .\" Avoid warning from groff about undefined register 'F'.
39 .de IX
40 ..
41 .nr rF 0
42 .if \n(.g .if rF .nr rF 1
43 .if (\n(rF:(\n(.g==0)) \{\
44 . if \nF \{\
45 . de IX
46 . tm Index:\\$1\t\\n%\t"\\$2"
47 ..
48 . if !\nF==2 \{\
49 . nr % 0
50 . nr F 2
51 . \}
52 . \}
53 .\}
54 .rr rF
55 .\"
56 .\" Required to disable full justification in groff 1.23.0.
57 .if n .ds AD l
58 .\" ========================================================================
59 .\"
60 .IX Title "PERLGLOSSARY 1"
61 .TH PERLGLOSSARY 1 2025-06-24 "perl v5.42.0" "Perl Programmers Reference Guide"
62 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
63 .\" way too many mistakes in technical documents.
64 .if n .ad l
65 .nh
66 .SH NAME
67 perlglossary \- Perl Glossary
68 .SH VERSION
69 .IX Header "VERSION"
70 version 5.20250619
71 .SH DESCRIPTION
72 .IX Header "DESCRIPTION"
73 A glossary of terms (technical and otherwise) used in the Perl
74 documentation, derived from the Glossary of \fIProgramming
75 Perl\fR, Fourth Edition. Words or phrases in bold are defined elsewhere in
76 this glossary.
77 .PP
78 Other useful sources include the Unicode Glossary <http://unicode.org/glossary/>,
79 the Free On\-Line Dictionary of Computing <http://foldoc.org/>,
80 the Jargon File <http://catb.org/~esr/jargon/>,
81 and Wikipedia <http://www.wikipedia.org/>.
82 .SS A
83 .IX Subsection "A"
84 .IP "accessor methods" 4
85 .IX Item "accessor methods"
86 A \fBmethod\fR used to
87 indirectly inspect or update an \fBobject\fR’s state (its \fBinstance
88 variables\fR).
89 .IX Xref "accessor methods, defined methods, accessor"
90 .IP "actual arguments" 4
91 .IX Item "actual arguments"
92 The \fBscalar values\fR that you supply
93 to a \fBfunction\fR or \fBsubroutine\fR when you call it. For instance, when you
94 call \f(CWpower("puff")\fR, the string \f(CW"puff"\fR is the actual argument. See also
95 \&\fBargument\fR and \fBformal arguments\fR.
96 .IX Xref "actual arguments arguments, actual"
97 .IP "address operator" 4
98 .IX Item "address operator"
99 Some languages work directly with the memory addresses of
100 values, but this can be like playing with fire. Perl provides a set of
101 asbestos gloves for handling all memory management. The closest to an
102 address operator in Perl is the backslash operator, but it gives you a
103 \&\fBhard reference\fR, which is much safer than a memory address.
104 .IX Xref "address operator"
105 .IP algorithm 4
106 .IX Item "algorithm"
107 A well\-defined sequence of steps, explained clearly
108 enough that even a computer could do them.
109 .IX Xref "algorithms (term)"
110 .IP alias 4
111 .IX Item "alias"
112 A nickname for something, which behaves in all ways as
113 though you’d used the original name instead of the nickname. Temporary
114 aliases are implicitly created in the loop variable for \f(CW\*(C`foreach\*(C'\fR loops, in
115 the \f(CW$_\fR variable for \f(CW\*(C`map\*(C'\fR or \f(CW\*(C`grep\*(C'\fR operators, in \f(CW$a\fR and \f(CW$b\fR
116 during \f(CW\*(C`sort\*(C'\fR’s comparison function, and in each element of \f(CW@_\fR for the
117 \&\fBactual arguments\fR of a subroutine call. Permanent aliases are explicitly
118 created in \fBpackages\fR by \fBimporting\fR symbols or by assignment to
119 \&\fBtypeglobs\fR. Lexically scoped aliases for package variables are explicitly
120 created by the \f(CW\*(C`our\*(C'\fR declaration.
121 .IX Xref "aliases, defined"
122 .IP alphabetic 4
123 .IX Item "alphabetic"
124 The sort of characters we put into words. In Unicode, this
125 is all letters including all ideographs and certain diacritics, letter
126 numbers like Roman numerals, and various combining marks.
127 .IX Xref "alphabetic sort"
128 .IP alternatives 4
129 .IX Item "alternatives"
130 A list of possible choices from which you may
131 select only one, as in, “Would you like door A, B, or C?” Alternatives in
132 regular expressions are separated with a single vertical bar: \f(CW\*(C`|\*(C'\fR.
133 Alternatives in normal Perl expressions are separated with a double vertical
134 bar: \f(CW\*(C`||\*(C'\fR. Logical alternatives in \fBBoolean\fR expressions are separated
135 with either \f(CW\*(C`||\*(C'\fR or \f(CW\*(C`or\*(C'\fR.
136 .IX Xref "alternative characters"
137 .IP anonymous 4
138 .IX Item "anonymous"
139 Used to describe a \fBreferent\fR
140 that is not directly accessible through a named \fBvariable\fR. Such a referent
141 must be indirectly accessible through at least one \fBhard reference\fR. When
142 the last hard reference goes away, the anonymous referent is destroyed
143 without pity.
144 .IX Xref "anonymous referents referents, anonymous"
145 .IP application 4
146 .IX Item "application"
147 A bigger, fancier sort of \fBprogram\fR with a fancier
148 name so people don’t realize they are using a program.
149 .IX Xref "applications (term)"
150 .IP architecture 4
151 .IX Item "architecture"
152 The kind of computer you’re working on, where one “kind of
153 computer” means all those computers sharing a compatible machine language.
154 Since Perl programs are (typically) simple text files, not executable
155 images, a Perl program is much less sensitive to the architecture it’s
156 running on than programs in other languages, such as C, that are \fBcompiled\fR
157 into machine code. See also \fBplatform\fR and \fBoperating system\fR.
158 .IX Xref "architecture"
159 .IP argument 4
160 .IX Item "argument"
161 A piece of data supplied to a \fBprogram\fR,
162 \&\fBsubroutine\fR, \fBfunction\fR, or \fBmethod\fR to tell it what it’s supposed to
163 do. Also called a “parameter”.
164 .IX Xref "arguments, defined"
165 .IP ARGV 4
166 .IX Item "ARGV"
167 The name of the array containing the \fBargument\fR \fBvector\fR
168 from the command line. If you use the empty \f(CW\*(C`<>\*(C'\fR operator, \f(CW\*(C`ARGV\*(C'\fR
169 is the name of both the \fBfilehandle\fR used to traverse the arguments and the
170 \&\fBscalar\fR containing the name of the current input file.
171 .IX Xref "ARGV filehandle"
172 .IP "arithmetical operator" 4
173 .IX Item "arithmetical operator"
174 A \fBsymbol\fR such as \f(CW\*(C`+\*(C'\fR or \f(CW\*(C`/\*(C'\fR that tells
175 Perl to do the arithmetic you were supposed to learn in grade school.
176 .IX Xref "arithmetic operators, about"
177 .IP array 4
178 .IX Item "array"
179 An ordered sequence of \fBvalues\fR, stored such that you can
180 easily access any of the values using an \fIinteger subscript\fR that specifies
181 the value’s \fBoffset\fR in the sequence.
182 .IX Xref "arrays, defined"
183 .IP "array context" 4
184 .IX Item "array context"
185 An archaic expression for what is more correctly referred to
186 as \fBlist context\fR.
187 .IX Xref "array context"
188 .IP "Artistic License" 4
189 .IX Item "Artistic License"
190 The open source license that Larry Wall
191 created for Perl, maximizing Perl’s usefulness, availability, and
192 modifiability. The current version is 2. (<http://www.opensource.org/licenses/artistic\-license.php>).
193 .IX Xref "Artistic License Wall, Larry"
194 .IP ASCII 4
195 .IX Item "ASCII"
196 The American Standard Code for
197 Information Interchange (a 7\-bit character set adequate only for poorly
198 representing English text). Often used loosely to describe the lowest 128
199 values of the various ISO\-8859\-X character sets, a bunch of mutually
200 incompatible 8\-bit codes best described as half ASCII. See also \fBUnicode\fR.
201 .IX Xref "ASCII (American Standard Code for Information Interchange) American Standard Code for Information Interchange (ASCII)"
202 .IP assertion 4
203 .IX Item "assertion"
204 A component of a \fBregular expression\fR that must be true for the pattern to
205 match but does not necessarily match any characters itself. Often used
206 specifically to mean a \fBzero\-width\fR assertion.
207 .IX Xref "assertions (in regexes), defined regular expressions, assertions in"
208 .IP assignment 4
209 .IX Item "assignment"
210 An \fBoperator\fR whose assigned mission in life is to
211 change the value of a \fBvariable\fR.
212 .IX Xref "assignments, defined"
213 .IP "assignment operator" 4
214 .IX Item "assignment operator"
215 Either a regular \fBassignment\fR or a compound
216 \&\fBoperator\fR composed of an ordinary assignment and some other operator, that
217 changes the value of a variable in place; that is, relative to its old
218 value. For example, \f(CW\*(C`$a += 2\*(C'\fR adds \f(CW2\fR to \f(CW$a\fR.
219 .IX Xref "assignment operators, about"
220 .IP "associative array" 4
221 .IX Item "associative array"
222 See \fBhash\fR. Please. The term associative array is the
223 old Perl 4 term for a \fBhash\fR. Some languages call it a dictionary.
224 .IX Xref "associative arrays"
225 .IP associativity 4
226 .IX Item "associativity"
227 Determines whether you do the left \fBoperator\fR first or the
228 right \fBoperator\fR first when you have “A \fBoperator\fR B \fBoperator\fR C”, and
229 the two operators are of the same precedence. Operators like \f(CW\*(C`+\*(C'\fR are left
230 associative, while operators like \f(CW\*(C`**\*(C'\fR are right associative. See Camel
231 chapter 3, “Unary and Binary Operators” for a list of operators and their
232 associativity.
233 .IX Xref "associativity"
234 .IP asynchronous 4
235 .IX Item "asynchronous"
236 Said of events or activities whose relative
237 temporal ordering is indeterminate because too many things are going on at
238 once. Hence, an asynchronous event is one you didn’t know when to expect.
239 .IX Xref "asynchronous event processing"
240 .IP atom 4
241 .IX Item "atom"
242 A \fBregular expression\fR component potentially matching a
243 \&\fBsubstring\fR containing one or more characters and treated as an indivisible
244 syntactic unit by any following \fBquantifier\fR. (Contrast with an
245 \&\fBassertion\fR that matches something of \fBzero width\fR and may not be quantified.)
246 .IX Xref "atoms"
247 .IP "atomic operation" 4
248 .IX Item "atomic operation"
249 When Democritus gave the word “atom” to the indivisible
250 bits of matter, he meant literally something that could not be cut: \fIἀ\-\fR
251 (not) + \fI\-τομος\fR (cuttable). An atomic operation is an action that can’t be
252 interrupted, not one forbidden in a nuclear\-free zone.
253 .IX Xref "atomic operation"
254 .IP attribute 4
255 .IX Item "attribute"
256 A new feature that allows the declaration of
257 \&\fBvariables\fR and \fBsubroutines\fR with modifiers, as in \f(CW\*(C`sub foo : locked
258 method\*(C'\fR. Also another name for an \fBinstance variable\fR of an \fBobject\fR.
259 .IX Xref "attribute feature"
260 .IP autogeneration 4
261 .IX Item "autogeneration"
262 A feature of \fBoperator overloading\fR of \fBobjects\fR,
263 whereby the behavior of certain \fBoperators\fR can be reasonably deduced using
264 more fundamental operators. This assumes that the overloaded operators will
265 often have the same relationships as the regular operators. See Camel
266 chapter 13, “Overloading”.
267 .IX Xref "autogeneration, about"
268 .IP autoincrement 4
269 .IX Item "autoincrement"
270 To add one to something automatically, hence the name
271 of the \f(CW\*(C`++\*(C'\fR operator. To instead subtract one from something automatically
272 is known as an “autodecrement”.
273 .IX Xref "autoincrement (term)"
274 .IP autoload 4
275 .IX Item "autoload"
276 To load on demand. (Also called “lazy” loading.)
277 Specifically, to call an \f(CW\*(C`AUTOLOAD\*(C'\fR subroutine on behalf of an undefined
278 subroutine.
279 .IX Xref "autoloading, defined"
280 .IP autosplit 4
281 .IX Item "autosplit"
282 To split a string automatically, as the \fI–a\fR \fBswitch\fR
283 does when running under \fI–p\fR or \fI–n\fR in order to emulate \fBawk\fR. (See also
284 the \f(CW\*(C`AutoSplit\*(C'\fR module, which has nothing to do with the
285 \&\f(CW\*(C`–a\*(C'\fR switch but a lot to do with autoloading.)
286 .IX Xref "autosplit (term) AutoSplit module"
287 .IP autovivification 4
288 .IX Item "autovivification"
289 A Graeco\-Roman word meaning “to bring oneself to life”.
290 In Perl, storage locations (\fBlvalues\fR) spontaneously generate themselves as
291 needed, including the creation of any \fBhard reference\fR values to point to
292 the next level of storage. The assignment \f(CW\*(C`$a[5][5][5][5][5] = "quintet"\*(C'\fR
293 potentially creates five scalar storage locations, plus four references (in
294 the first four scalar locations) pointing to four new anonymous arrays (to
295 hold the last four scalar locations). But the point of autovivification is
296 that you don’t have to worry about it.
297 .IX Xref "autovivification"
298 .IP AV 4
299 .IX Item "AV"
300 Short for “array
301 value”, which refers to one of Perl’s internal data types that holds an
302 \&\fBarray\fR. The \f(CW\*(C`AV\*(C'\fR type is a subclass of \fBSV\fR.
303 .IX Xref "AV (array value) array value (AV) values, array"
304 .IP awk 4
305 .IX Item "awk"
306 Descriptive editing term—short for “awkward”. Also
307 coincidentally refers to a venerable text\-processing language from which
308 Perl derived some of its high\-level ideas.
309 .IX Xref "awk (editing term)"
310 .SS B
311 .IX Subsection "B"
312 .IP backreference 4
313 .IX Item "backreference"
314 A substring \fBcaptured\fR
315 by a subpattern within unadorned parentheses in a \fBregex\fR. Backslashed
316 decimal numbers (\f(CW\*(C`\e1\*(C'\fR, \f(CW\*(C`\e2\*(C'\fR, etc.) later in the same pattern refer back to
317 the corresponding subpattern in the current match. Outside the pattern, the
318 numbered variables (\f(CW$1\fR, \f(CW$2\fR, etc.) continue to refer to these same
319 values, as long as the pattern was the last successful match of the current
320 \&\fBdynamic scope\fR.
321 .IX Xref "backreferences, about references, backreferences"
322 .IP backtracking 4
323 .IX Item "backtracking"
324 The practice of saying, “If I had to do it all over, I’d do
325 it differently,” and then actually going back and doing it all over
326 differently. Mathematically speaking, it’s returning from an unsuccessful
327 recursion on a tree of possibilities. Perl backtracks when it attempts to
328 match patterns with a \fBregular expression\fR, and its earlier attempts don’t
329 pan out. See the section “The Little Engine That /Couldn(n’t)” in Camel
330 chapter 5, “Pattern Matching”.
331 .IX Xref "backtracking"
332 .IP "backward compatibility" 4
333 .IX Item "backward compatibility"
334 Means you can still run your old program
335 because we didn’t break any of the features or bugs it was relying on.
336 .IX Xref "backward compatibility, defined"
337 .IP bareword 4
338 .IX Item "bareword"
339 A word sufficiently ambiguous to be deemed illegal under
340 \&\f(CW\*(C`use strict \*(Aqsubs\*(Aq\*(C'\fR. In the absence of that stricture, a bareword is
341 treated as if quotes were around it.
342 .IX Xref "barewords, about"
343 .IP "base class" 4
344 .IX Item "base class"
345 A generic \fBobject\fR type; that is, a \fBclass\fR
346 from which other, more specific classes are derived genetically by
347 \&\fBinheritance\fR. Also called a
348 “superclass” by people who respect their ancestors.
349 .IX Xref "base classes classes, base superclasses classes, superclasses"
350 .IP big\-endian 4
351 .IX Item "big-endian"
352 From Swift: someone who
353 eats eggs big end first. Also used of computers that store the most
354 significant \fBbyte\fR of a word at a lower byte address than the least
355 significant byte. Often considered superior to little\-endian machines. See
356 also \fBlittle\-endian\fR.
357 .IX Xref "big–endian, defined endianness, big–endian"
358 .IP binary 4
359 .IX Item "binary"
360 Having to do with numbers represented in base 2. That means
361 there’s basically two numbers: 0 and 1. Also used to describe a file of
362 “nontext”, presumably because such a file makes full use of all the binary
363 bits in its bytes. With the advent of \fBUnicode\fR, this distinction, already
364 suspect, loses even more of its meaning.
365 .IX Xref "binary (term)"
366 .IP "binary operator" 4
367 .IX Item "binary operator"
368 An \fBoperator\fR that takes two \fBoperands\fR.
369 .IX Xref "binary operators, about"
370 .IP bind 4
371 .IX Item "bind"
372 To assign a specific \fBnetwork address\fR to a \fBsocket\fR.
373 .IX Xref "bind (term)"
374 .IP bit 4
375 .IX Item "bit"
376 An integer in the range from 0 to 1, inclusive. The smallest
377 possible unit of information storage. An eighth of a \fBbyte\fR or of a dollar.
378 (The term “Pieces of Eight” comes from being able to split the old Spanish
379 dollar into 8 bits, each of which still counted for money. That’s why a 25\-
380 cent piece today is still “two bits”.)
381 .IX Xref "bits, defined"
382 .IP "bit shift" 4
383 .IX Item "bit shift"
384 The movement of bits left or right in a
385 computer word, which has the effect of multiplying or dividing by a
386 power of 2.
387 .IX Xref "bit–shift operators, defined"
388 .IP "bit string" 4
389 .IX Item "bit string"
390 A sequence of \fBbits\fR that is actually being thought of as a
391 sequence of bits, for once.
392 .IX Xref "bit string"
393 .IP bless 4
394 .IX Item "bless"
395 In corporate life, to grant official
396 approval to a thing, as in, “The VP of Engineering has blessed our
397 WebCruncher project.” Similarly, in Perl, to grant official approval to a
398 \&\fBreferent\fR so that it can function as an \fBobject\fR, such as a WebCruncher
399 object. See the \f(CW\*(C`bless\*(C'\fR function in Camel chapter 27, “Functions”.
400 .IX Xref "bless function, about bless (term)"
401 .IP block 4
402 .IX Item "block"
403 What a \fBprocess\fR does when it has to wait for something:
404 “My process blocked waiting for the disk.” As an unrelated noun, it refers
405 to a large chunk of data, of a size that the \fBoperating system\fR likes to
406 deal with (normally a power of 2 such as 512 or 8192). Typically refers to
407 a chunk of data that’s coming from or going to a disk file.
408 .IX Xref "blocks, defined"
409 .IP BLOCK 4
410 .IX Item "BLOCK"
411 A syntactic construct
412 consisting of a sequence of Perl \fBstatements\fR that is delimited by braces.
413 The \f(CW\*(C`if\*(C'\fR and \f(CW\*(C`while\*(C'\fR statements are defined in terms of \fR\f(CI\*(C`BLOCK\*(C'\fR\fI\fRs, for
414 instance. Sometimes we also say “block” to mean a lexical scope; that is, a
415 sequence of statements that acts like a \fI\fR\f(CI\*(C`BLOCK\*(C'\fR\fI\fR, such as within an
416 \&\f(CW\*(C`eval\*(C'\fR or a file, even though the statements aren’t delimited by braces.
417 .IX Xref "BLOCK construct, about constructs, BLOCK"
418 .IP "block buffering" 4
419 .IX Item "block buffering"
420 A method of making input and output
421 efficient by passing one \fBblock\fR at a time. By default, Perl does block
422 buffering to disk files. See \fBbuffer\fR and \fBcommand buffering\fR.
423 .IX Xref "block buffering buffering, block"
424 .IP Boolean 4
425 .IX Item "Boolean"
426 A value that is either \fBtrue\fR or
427 \&\fBfalse\fR.
428 .IX Xref "Boolean values values, Boolean"
429 .IP "Boolean context" 4
430 .IX Item "Boolean context"
431 A special kind of \fBscalar
432 context\fR used in conditionals to decide whether the \fBscalar value\fR returned
433 by an expression is \fBtrue\fR or \fBfalse\fR. Does not evaluate as either a
434 string or a number. See \fBcontext\fR.
435 .IX Xref "Boolean context, about context, Boolean"
436 .IP breakpoint 4
437 .IX Item "breakpoint"
438 A spot in your program where you’ve told the debugger
439 to stop \fBexecution\fR so you can poke around and see whether anything is
440 wrong yet.
441 .IX Xref "breakpoints, defined"
442 .IP broadcast 4
443 .IX Item "broadcast"
444 To send a \fBdatagram\fR to multiple destinations
445 simultaneously.
446 .IX Xref "broadcast (networking term)"
447 .IP BSD 4
448 .IX Item "BSD"
449 A psychoactive drug, popular in the ’80s, probably developed at UC
450 Berkeley or thereabouts. Similar in many ways to the prescription\-only
451 medication called “System V”, but infinitely more useful. (Or, at least,
452 more fun.) The full chemical name is “Berkeley Standard Distribution”.
453 .IX Xref "BSD (Berkeley Standard Distribution) Berkeley Standard Distribution (BSD)"
454 .IP bucket 4
455 .IX Item "bucket"
456 A location in a \fBhash table\fR containing (potentially)
457 multiple entries whose keys “hash” to the same hash value according to its
458 hash function. (As internal policy, you don’t have to worry about it unless
459 you’re into internals, or policy.)
460 .IX Xref "buckets (term)"
461 .IP buffer 4
462 .IX Item "buffer"
463 A temporary holding location for data. Data that are
464 \&\fBBlock buffering\fR means that the data is passed on to its destination
465 whenever the buffer is full. \fBLine buffering\fR means that it’s passed on
466 whenever a complete line is received. \fBCommand buffering\fR means that it’s
467 passed every time you do a \f(CW\*(C`print\*(C'\fR command (or equivalent). If your output
468 is unbuffered, the system processes it one byte at a time without the use of
469 a holding area. This can be rather inefficient.
470 .IX Xref "buffers, defined"
471 .IP built\-in 4
472 .IX Item "built-in"
473 A \fBfunction\fR that is predefined in the
474 language. Even when hidden by \fBoverriding\fR, you can always get at a built\-
475 in function by \fBqualifying\fR its name with the \f(CW\*(C`CORE::\*(C'\fR pseudopackage.
476 .IX Xref "built–in functions, about"
477 .IP bundle 4
478 .IX Item "bundle"
479 A group of related modules on \fBCPAN\fR. (Also sometimes
480 refers to a group of command\-line switches grouped into one \fBswitch
481 cluster\fR.)
482 .IX Xref "bundles (term)"
483 .IP byte 4
484 .IX Item "byte"
485 A piece of data worth eight \fBbits\fR in most places.
486 .IX Xref "bytes (term)"
487 .IP bytecode 4
488 .IX Item "bytecode"
489 A pidgin\-like lingo spoken among ’droids when they don’t wish to reveal
490 their orientation (see \fBendian\fR). Named after some similar languages spoken
491 (for similar reasons) between compilers and interpreters in the late 20ᵗʰ
492 century. These languages are characterized by representing everything as a
493 nonarchitecture\-dependent sequence of bytes.
494 .SS C
495 .IX Subsection "C"
496 .IP C 4
497 .IX Item "C"
498 A language beloved by many for its inside\-out \fBtype\fR
499 definitions, inscrutable \fBprecedence\fR rules, and heavy \fBoverloading\fR of
500 the function\-call mechanism. (Well, actually, people first switched to C
501 because they found lowercase identifiers easier to read than upper.) Perl is
502 written in C, so it’s not surprising that Perl borrowed a few ideas from it.
503 .IX Xref "C language, about"
504 .IP cache 4
505 .IX Item "cache"
506 A data repository. Instead of computing expensive answers
507 several times, compute it once and save the result.
508 .IX Xref "cache (term)"
509 .IP callback 4
510 .IX Item "callback"
511 A \fBhandler\fR that you register with some other part of your
512 program in the hope that the other part of your program will \fBtrigger\fR your
513 handler when some event of interest transpires.
514 .IX Xref "callbacks"
515 .IP "call by reference" 4
516 .IX Item "call by reference"
517 An \fBargument\fR\-passing mechanism in which the \fBformal arguments\fR refer directly to the
518 \&\fBactual arguments\fR, and the \fBsubroutine\fR can change the actual arguments
519 by changing the formal arguments. That is, the formal argument is an
520 \&\fBalias\fR for the actual argument. See also \fBcall by value\fR.
521 .IX Xref "call by reference references, call by reference mechanism"
522 .IP "call by value" 4
523 .IX Item "call by value"
524 An \fBargument\fR\-passing mechanism in which the \fBformal
525 arguments\fR refer to a copy of the \fBactual arguments\fR, and the
526 \&\fBsubroutine\fR cannot change the actual arguments by changing the formal
527 arguments. See also \fBcall by reference\fR.
528 .IX Xref "call by value"
529 .IP canonical 4
530 .IX Item "canonical"
531 Reduced to a standard form to facilitate comparison.
532 .IX Xref "canonical (term)"
533 .IP "capture variables" 4
534 .IX Item "capture variables"
535 The variables—such as \f(CW$1\fR and
536 \&\f(CW$2\fR, and \f(CW\*(C`%+\*(C'\fR and \f(CW\*(C`%– \*(C'\fR—that hold the text remembered in a pattern
537 match. See Camel chapter 5, “Pattern Matching”.
538 .IX Xref "capture variables variables, capture"
539 .IP capturing 4
540 .IX Item "capturing"
541 The use of parentheses around a \fBsubpattern\fR in a
542 \&\fBregular expression\fR to store the matched \fBsubstring\fR as a
543 \&\fBbackreference\fR. (Captured strings are also returned as a list in \fBlist
544 context\fR.) See Camel chapter 5, “Pattern Matching”.
545 .IX Xref "capturing in pattern matching subpatterns, capturing pattern matching, capturing in"
546 .IP "cargo cult" 4
547 .IX Item "cargo cult"
548 Copying and pasting code without understanding it, while
549 superstitiously believing in its value. This term originated from
550 preindustrial cultures dealing with the detritus of explorers and colonizers
551 of technologically advanced cultures. See \fIThe Gods Must Be Crazy\fR.
552 .IX Xref "cargo cult"
553 .IP case 4
554 .IX Item "case"
555 A property of certain
556 characters. Originally, typesetter stored capital letters in the upper of
557 two cases and small letters in the lower one. Unicode recognizes three
558 cases: \fBlowercase\fR (\fBcharacter property\fR \f(CW\*(C`\ep{lower}\*(C'\fR), \fBtitlecase\fR
559 (\f(CW\*(C`\ep{title}\*(C'\fR), and \fBuppercase\fR (\f(CW\*(C`\ep{upper}\*(C'\fR). A fourth casemapping called
560 \&\fBfoldcase\fR is not itself a distinct case, but it is used internally to
561 implement \fBcasefolding\fR. Not all letters have case, and some nonletters
562 have case.
563 .IX Xref "case (character) characters, case considerations"
564 .IP casefolding 4
565 .IX Item "casefolding"
566 Comparing or matching a string case\-insensitively. In Perl, it
567 is implemented with the \f(CW\*(C`/i\*(C'\fR pattern modifier, the \f(CW\*(C`fc\*(C'\fR function, and the
568 \&\f(CW\*(C`\eF\*(C'\fR double\-quote translation escape.
569 .IX Xref "casefolding"
570 .IP casemapping 4
571 .IX Item "casemapping"
572 The process of converting a string to one of the four Unicode
573 \&\fBcasemaps\fR; in Perl, it is implemented with the \f(CW\*(C`fc\*(C'\fR, \f(CW\*(C`lc\*(C'\fR, \f(CW\*(C`ucfirst\*(C'\fR,
574 and \f(CW\*(C`uc\*(C'\fR functions.
575 .IX Xref "casemapping"
576 .IP character 4
577 .IX Item "character"
578 The smallest individual element of a string. Computers
579 store characters as integers, but Perl lets you operate on them as text. The
580 integer used to represent a particular character is called that character’s
581 \&\fBcodepoint\fR.
582 .IX Xref "characters, defined"
583 .IP "character class" 4
584 .IX Item "character class"
585 A square\-bracketed list of
586 characters used in a \fBregular expression\fR to indicate that any character
587 of the set may occur at a given point. Loosely, any predefined set of
588 characters so used.
589 .IX Xref "character classes, about classes, character"
590 .IP "character property" 4
591 .IX Item "character property"
592 A predefined \fBcharacter class\fR matchable by the \f(CW\*(C`\ep\*(C'\fR
593 or \f(CW\*(C`\eP\*(C'\fR \fBmetasymbol\fR. \fBUnicode\fR defines hundreds of standard properties
594 for every possible codepoint, and Perl defines a few of its own, too.
595 .IX Xref "character property"
596 .IP "circumfix operator" 4
597 .IX Item "circumfix operator"
598 An \fBoperator\fR that surrounds its \fBoperand\fR, like the
599 angle operator, or parentheses, or a hug.
600 .IX Xref "circumfix operator"
601 .IP class 4
602 .IX Item "class"
603 A user\-defined \fBtype\fR, implemented in Perl via a
604 \&\fBpackage\fR that provides (either directly or by inheritance) \fBmethods\fR
605 (that is, \fBsubroutines\fR) to handle \fBinstances\fR of the class (its
606 \&\fBobjects\fR). See also \fBinheritance\fR.
607 .IX Xref "classes, defined"
608 .IP "class method" 4
609 .IX Item "class method"
610 A \fBmethod\fR whose \fBinvocant\fR is a
611 \&\fBpackage\fR name, not an \fBobject\fR reference. A method associated with the
612 class as a whole. Also see \fBinstance method\fR.
613 .IX Xref "class methods methods, class"
614 .IP client 4
615 .IX Item "client"
616 In networking, a \fBprocess\fR that
617 initiates contact with a \fBserver\fR process in order to exchange data and
618 perhaps receive a service.
619 .IX Xref "clients, defined processes, client"
620 .IP closure 4
621 .IX Item "closure"
622 An \fBanonymous\fR subroutine
623 that, when a reference to it is generated at runtime, keeps track of the
624 identities of externally visible \fBlexical variables\fR, even after those
625 lexical variables have supposedly gone out of \fBscope\fR. They’re called
626 “closures” because this sort of behavior gives mathematicians a sense of
627 closure.
628 .IX Xref "closure subroutines subroutines, closure"
629 .IP cluster 4
630 .IX Item "cluster"
631 A parenthesized \fBsubpattern\fR
632 used to group parts of a \fBregular expression\fR into a single \fBatom\fR.
633 .IX Xref "clusters, defined subpatterns, cluster"
634 .IP CODE 4
635 .IX Item "CODE"
636 The word returned by the \f(CW\*(C`ref\*(C'\fR
637 function when you apply it to a reference to a subroutine. See also \fBCV\fR.
638 .IX Xref "CODE (ref function) ref function, about"
639 .IP "code generator" 4
640 .IX Item "code generator"
641 A system that writes code for you in a low\-level
642 language, such as code to implement the backend of a compiler. See \fBprogram
643 generator\fR.
644 .IX Xref "code generators, defined"
645 .IP codepoint 4
646 .IX Item "codepoint"
647 The integer a computer uses to represent a given
648 character. ASCII codepoints are in the range 0 to 127; Unicode codepoints
649 are in the range 0 to 0x10_FFFF; and Perl codepoints are in the range 0 to
650 2³²−1 or 0 to 2⁶⁴−1, depending on your native integer size. In Perl Culture,
651 sometimes called \fBordinals\fR.
652 .IX Xref "codepoints, about"
653 .IP "code subpattern" 4
654 .IX Item "code subpattern"
655 A \fBregular expression\fR subpattern
656 whose real purpose is to execute some Perl code—for example, the \f(CW\*(C`(?{...})\*(C'\fR
657 and \f(CW\*(C`(??{...})\*(C'\fR subpatterns.
658 .IX Xref "code subpatterns subpatterns, code"
659 .IP "collating sequence" 4
660 .IX Item "collating sequence"
661 The order into which \fBcharacters\fR
662 sort. This is used by \fBstring\fR comparison routines to decide, for example,
663 where in this glossary to put “collating sequence”.
664 .IX Xref "collating sequence collating sequence"
665 .IP co\-maintainer 4
666 .IX Item "co-maintainer"
667 A person with permissions to index a \fBnamespace\fR in
668 \&\fBPAUSE\fR. Anyone can upload any namespace, but only primary and
669 co\-maintainers get their contributions indexed.
670 .IX Xref "co–maintainers"
671 .IP "combining character" 4
672 .IX Item "combining character"
673 Any character with the
674 General Category of Combining Mark (\f(CW\*(C`\ep{GC=M}\*(C'\fR), which may be spacing or
675 nonspacing. Some are even invisible. A sequence of combining characters
676 following a grapheme base character together make up a single user\-visible
677 character called a \fBgrapheme\fR. Most but not all diacritics are combining
678 characters, and vice versa.
679 .IX Xref "combining characters characters, combining"
680 .IP command 4
681 .IX Item "command"
682 In \fBshell\fR programming, the syntactic combination of a
683 program name and its arguments. More loosely, anything you type to a shell
684 (a command interpreter) that starts it doing something. Even more loosely, a
685 Perl \fBstatement\fR, which might start with a \fBlabel\fR and typically ends with
686 a semicolon.
687 .IX Xref "commands, defined"
688 .IP "command buffering" 4
689 .IX Item "command buffering"
690 A mechanism in Perl that lets you
691 store up the output of each Perl \fBcommand\fR and then flush it out as a
692 single request to the \fBoperating system\fR. It’s enabled by setting the \f(CW$|\fR
693 (\f(CW$AUTOFLUSH\fR) variable to a true value. It’s used when you don’t want data
694 sitting around, not going where it’s supposed to, which may happen because
695 the default on a \fBfile\fR or \fBpipe\fR is to use \fBblock buffering\fR.
696 .IX Xref "command buffering buffering, command"
697 .IP "command\-line arguments" 4
698 .IX Item "command-line arguments"
699 The \fBvalues\fR you supply
700 along with a program name when you tell a \fBshell\fR to execute a \fBcommand\fR.
701 These values are passed to a Perl program through \f(CW@ARGV\fR.
702 .IX Xref "command–line arguments arguments, command–line"
703 .IP "command name" 4
704 .IX Item "command name"
705 The name of the program currently executing, as typed on the
706 command line. In C, the \fBcommand\fR name is passed to the program as the
707 first command\-line argument. In Perl, it comes in separately as \f(CW$0\fR.
708 .IX Xref "command names"
709 .IP comment 4
710 .IX Item "comment"
711 A remark that doesn’t affect the meaning of the program.
712 In Perl, a comment is introduced by a \f(CW\*(C`#\*(C'\fR character and continues to the
713 end of the line.
714 .IX Xref "comments, defined"
715 .IP "compilation unit" 4
716 .IX Item "compilation unit"
717 The \fBfile\fR (or \fBstring\fR, in the case of \f(CW\*(C`eval\*(C'\fR) that
718 is currently being \fBcompiled\fR.
719 .IX Xref "compilation units"
720 .IP compile 4
721 .IX Item "compile"
722 The process of turning source code into a machine\-usable form. See \fBcompile
723 phase\fR.
724 .IP "compile phase" 4
725 .IX Item "compile phase"
726 Any time before Perl starts running your main
727 program. See also \fBrun phase\fR. Compile phase is mostly spent in \fBcompile
728 time\fR, but may also be spent in \fBruntime\fR when \f(CW\*(C`BEGIN\*(C'\fR blocks, \f(CW\*(C`use\*(C'\fR or
729 \&\f(CW\*(C`no\*(C'\fR declarations, or constant subexpressions are being evaluated. The
730 startup and import code of any \f(CW\*(C`use\*(C'\fR declaration is also run during
731 compile phase.
732 .IX Xref "compile phase, defined"
733 .IP compiler 4
734 .IX Item "compiler"
735 Strictly speaking, a program that munches
736 up another program and spits out yet another file containing the program in
737 a “more executable” form, typically containing native machine instructions.
738 The \fIperl\fR program is not a compiler by this definition, but it does
739 contain a kind of compiler that takes a program and turns it into a more
740 executable form (\fBsyntax trees\fR) within the \fIperl\fR process itself, which
741 the \fBinterpreter\fR then interprets. There are, however, extension \fBmodules\fR
742 to get Perl to act more like a “real” compiler. See Camel chapter 16,
743 “Compiling”.
744 .IX Xref "compilers and compiling, about"
745 .IP "compile time" 4
746 .IX Item "compile time"
747 The time when Perl is trying to make sense of your
748 code, as opposed to when it thinks it knows what your code means and is
749 merely trying to do what it thinks your code says to do, which is \fBruntime\fR.
750 .IX Xref "compile time, defined"
751 .IP composer 4
752 .IX Item "composer"
753 A “constructor” for a \fBreferent\fR that isn’t really an
754 \&\fBobject\fR, like an anonymous array or a hash (or a sonata, for that matter).
755 For example, a pair of braces acts as a composer for a hash, and a pair of
756 brackets acts as a composer for an array. See the section “Creating
757 References” in Camel chapter 8, “References”.
758 .IX Xref "composers, about"
759 .IP concatenation 4
760 .IX Item "concatenation"
761 The process of gluing one
762 cat’s nose to another cat’s tail. Also a similar operation on two
763 \&\fBstrings\fR.
764 .IX Xref "concatenating strings strings, concatenating"
765 .IP conditional 4
766 .IX Item "conditional"
767 Something “iffy”. See \fBBoolean context\fR.
768 .IX Xref "conditional (term)"
769 .IP connection 4
770 .IX Item "connection"
771 In telephony, the temporary electrical circuit between
772 the caller’s and the callee’s phone. In networking, the same kind of
773 temporary circuit between a \fBclient\fR and a \fBserver\fR.
774 .IX Xref "connections (term)"
775 .IP construct 4
776 .IX Item "construct"
777 As a noun, a piece of syntax made up of smaller
778 pieces. As a transitive verb, to create an \fBobject\fR using a \fBconstructor\fR.
779 .IX Xref "constructs, defined"
780 .IP constructor 4
781 .IX Item "constructor"
782 Any \fBclass method\fR, \fBinstance\fR, or \fBsubroutine\fR
783 that composes, initializes, blesses, and returns an \fBobject\fR. Sometimes we
784 use the term loosely to mean a \fBcomposer\fR.
785 .IX Xref "constructors, defined"
786 .IP context 4
787 .IX Item "context"
788 The surroundings or environment. The context given by the
789 surrounding code determines what kind of data a particular \fBexpression\fR is
790 expected to return. The three primary contexts are \fBlist context\fR,
791 \&\fBscalar\fR, and \fBvoid context\fR. Scalar context is sometimes subdivided into
792 \&\fBBoolean context\fR, \fBnumeric context\fR, \fBstring context\fR, and \fBvoid
793 context\fR. There’s also a “don’t care” context (which is dealt with in Camel
794 chapter 2, “Bits and Pieces”, if you care).
795 .IX Xref "context, about"
796 .IP continuation 4
797 .IX Item "continuation"
798 The treatment of more than one physical \fBline\fR as a
799 single logical line. \fBMakefile\fR lines are continued by putting a backslash
800 before the \fBnewline\fR. Mail headers, as defined by RFC 822, are
801 continued by putting a space or tab \fIafter\fR the newline. In general, lines
802 in Perl do not need any form of continuation mark, because \fBwhitespace\fR
803 (including newlines) is gleefully ignored. Usually.
804 .IX Xref "continuation lines RFC 822"
805 .IP "core dump" 4
806 .IX Item "core dump"
807 The corpse of a \fBprocess\fR, in the form of a file left in the
808 \&\fBworking directory\fR of the process, usually as a result of certain kinds
809 of fatal errors.
810 .IX Xref "core dump"
811 .IP CPAN 4
812 .IX Item "CPAN"
813 The Comprehensive Perl Archive Network. (See the Camel Preface
814 and Camel chapter 19, “CPAN” for details.)
815 .IX Xref "Comprehensive Perl Archive Network CPAN (Comprehensive Perl Archive Network), about"
816 .IP "C preprocessor" 4
817 .IX Item "C preprocessor"
818 The typical C compiler’s first pass, which processes lines
819 beginning with \f(CW\*(C`#\*(C'\fR for conditional compilation and macro definition, and
820 does various manipulations of the program text based on the current
821 definitions. Also known as \fIcpp\fR(1).
822 .IX Xref "C preprocessor"
823 .IP cracker 4
824 .IX Item "cracker"
825 Someone who breaks security on computer systems. A cracker may
826 be a true \fBhacker\fR or only a \fBscript kiddie\fR.
827 .IX Xref "crackers"
828 .IP "currently selected output channel" 4
829 .IX Item "currently selected output channel"
830 The last \fBfilehandle\fR that was
831 designated with \f(CWselect(FILEHANDLE)\fR; \f(CW\*(C`STDOUT\*(C'\fR, if no filehandle has
832 been selected.
833 .IX Xref "currently selected output channel"
834 .IP "current package" 4
835 .IX Item "current package"
836 The \fBpackage\fR in which the current statement is
837 \&\fBcompiled\fR. Scan backward in the text of your program through the current
838 \&\fBlexical scope\fR or any enclosing lexical scopes until you find a package
839 declaration. That’s your current package name.
840 .IX Xref "current package"
841 .IP "current working directory" 4
842 .IX Item "current working directory"
843 See \fBworking directory\fR.
844 .IX Xref "current working directory"
845 .IP CV 4
846 .IX Item "CV"
847 In academia, a curriculum vitæ, a fancy kind of résumé. In Perl, an internal “code value” typedef holding a
848 \&\fBsubroutine\fR. The \f(CW\*(C`CV\*(C'\fR type is a subclass of \fBSV\fR.
849 .IX Xref "CV (code value) code value (CV)"
850 .SS D
851 .IX Subsection "D"
852 .IP "dangling statement" 4
853 .IX Item "dangling statement"
854 A bare, single \fBstatement\fR,
855 without any braces, hanging off an \f(CW\*(C`if\*(C'\fR or \f(CW\*(C`while\*(C'\fR conditional. C allows
856 them. Perl doesn’t.
857 .IX Xref "dangling statements statements, dangling"
858 .IP datagram 4
859 .IX Item "datagram"
860 A packet of data, such as a \fBUDP\fR message, that (from
861 the viewpoint of the programs involved) can be sent independently over the
862 network. (In fact, all packets are sent independently at the \fBIP\fR level,
863 but \fBstream\fR protocols such as \fBTCP\fR hide this from your program.)
864 .IX Xref "datagrams, defined"
865 .IP "data structure" 4
866 .IX Item "data structure"
867 How your various pieces of data relate to each
868 other and what shape they make when you put them all together, as in a
869 rectangular table or a triangular tree.
870 .IX Xref "data structures, defined"
871 .IP "data type" 4
872 .IX Item "data type"
873 A set of possible values, together with all the
874 operations that know how to deal with those values. For example, a numeric
875 data type has a certain set of numbers that you can work with, as well as
876 various mathematical operations that you can do on the numbers, but would
877 make little sense on, say, a string such as \f(CW"Kilroy"\fR. Strings have their
878 own operations, such as \fBconcatenation\fR. Compound types made of a number of
879 smaller pieces generally have operations to compose and decompose them, and
880 perhaps to rearrange them. \fBObjects\fR that model things in the real world
881 often have operations that correspond to real activities. For instance, if
882 you model an elevator, your elevator object might have an \f(CW\*(C`open_door\*(C'\fR
883 \&\fBmethod\fR.
884 .IX Xref "data types, defined"
885 .IP DBM 4
886 .IX Item "DBM"
887 Stands for “Database Management” routines, a set of routines that emulate an
888 \&\fBassociative array\fR using disk files. The routines use a dynamic hashing
889 scheme to locate any entry with only two disk accesses. DBM files allow a
890 Perl program to keep a persistent \fBhash\fR across multiple invocations. You
891 can \f(CW\*(C`tie\*(C'\fR your hash variables to various DBM implementations.
892 .IX Xref "DBM (Database Management) routines Database Management (DBM) routines"
893 .IP declaration 4
894 .IX Item "declaration"
895 An \fBassertion\fR that states something exists and
896 perhaps describes what it’s like, without giving any commitment as to how
897 or where you’ll use it. A declaration is like the part of your recipe that
898 says, “two cups flour, one large egg, four or five tadpoles…” See
899 \&\fBstatement\fR for its opposite. Note that some declarations also function
900 as statements. Subroutine declarations also act as definitions if a body
901 is supplied.
902 .IX Xref "declarations, defined"
903 .IP declarator 4
904 .IX Item "declarator"
905 Something that tells your program what sort of variable
906 you’d like. Perl doesn’t require you to declare variables, but you can use
907 \&\f(CW\*(C`my\*(C'\fR, \f(CW\*(C`our\*(C'\fR, or \f(CW\*(C`state\*(C'\fR to denote that you want something other than
908 the default.
909 .IX Xref "declarators"
910 .IP decrement 4
911 .IX Item "decrement"
912 To subtract a value from a
913 variable, as in “decrement \f(CW$x\fR” (meaning to remove 1 from its value) or
914 “decrement \f(CW$x\fR by 3”.
915 .IX Xref "decrementing values values, decrementing"
916 .IP default 4
917 .IX Item "default"
918 A \fBvalue\fR chosen for you if you don’t
919 supply a value of your own.
920 .IX Xref "default values values, default"
921 .IP defined 4
922 .IX Item "defined"
923 Having a meaning. Perl thinks that some of the things
924 people try to do are devoid of meaning; in particular, making use of
925 variables that have never been given a \fBvalue\fR and performing certain
926 operations on data that isn’t there. For example, if you try to read data
927 past the end of a file, Perl will hand you back an undefined value. See also
928 \&\fBfalse\fR and the \f(CW\*(C`defined\*(C'\fR entry in Camel chapter 27, “Functions”.
929 .IX Xref "defined (term)"
930 .IP delimiter 4
931 .IX Item "delimiter"
932 A \fBcharacter\fR or \fBstring\fR that sets bounds to an
933 arbitrarily sized textual object, not to be confused with a \fBseparator\fR or
934 \&\fBterminator\fR. “To delimit” really just means “to surround” or “to enclose”
935 (like these parentheses are doing).
936 .IX Xref "delimiters (term)"
937 .IP dereference 4
938 .IX Item "dereference"
939 A fancy computer science term
940 meaning “to follow a \fBreference\fR to what it points to”. The “de” part of it
941 refers to the fact that you’re taking away one level of \fBindirection\fR.
942 .IX Xref "dereference (term) references, dereference"
943 .IP "derived class" 4
944 .IX Item "derived class"
945 A \fBclass\fR that defines some of its \fBmethods\fR in terms of a more generic class,
946 called a \fBbase class\fR. Note that classes aren’t classified exclusively into
947 base classes or derived classes: a class can function as both a derived
948 class and a base class simultaneously, which is kind of classy.
949 .IX Xref "derived classes classes, derived subclasses classes, subclasses"
950 .IP descriptor 4
951 .IX Item "descriptor"
952 See \fBfile descriptor\fR.
953 .IP destroy 4
954 .IX Item "destroy"
955 To deallocate the memory of a \fBreferent\fR (first triggering
956 its \f(CW\*(C`DESTROY\*(C'\fR method, if it has one).
957 .IX Xref "destroy (term)"
958 .IP destructor 4
959 .IX Item "destructor"
960 A special \fBmethod\fR that is called
961 when an \fBobject\fR is thinking about \fBdestroying\fR itself. A Perl program’s
962 \&\f(CW\*(C`DESTROY\*(C'\fR method doesn’t do the actual destruction; Perl just \fBtriggers\fR
963 the method in case the \fBclass\fR wants to do any associated cleanup.
964 .IX Xref "destructor method methods, destructor"
965 .IP device 4
966 .IX Item "device"
967 A whiz\-bang hardware gizmo (like a disk or tape drive or a
968 modem or a joystick or a mouse) attached to your computer, which the
969 \&\fBoperating system\fR tries to make look like a \fBfile\fR (or a bunch of files).
970 Under Unix, these fake files tend to live in the \fI/dev\fR directory.
971 .IX Xref "devices (term)"
972 .IP directive 4
973 .IX Item "directive"
974 A \fBpod\fR directive. See Camel chapter 23, “Plain Old
975 Documentation”.
976 .IX Xref "directives, defined"
977 .IP directory 4
978 .IX Item "directory"
979 A special file that contains other files. Some
980 \&\fBoperating systems\fR call these “folders”, “drawers”, “catalogues”, or
981 “catalogs”.
982 .IX Xref "directories, defined"
983 .IP "directory handle" 4
984 .IX Item "directory handle"
985 A name that represents a particular instance of opening a
986 directory to read it, until you close it. See the \f(CW\*(C`opendir\*(C'\fR function.
987 .IX Xref "directory handle"
988 .IP discipline 4
989 .IX Item "discipline"
990 Some people need this and some people avoid it.
991 For Perl, it’s an old way to say \fBI/O layer\fR.
992 .IX Xref "discipline (I O layer)"
993 .IP dispatch 4
994 .IX Item "dispatch"
995 To send something to its correct destination. Often used
996 metaphorically to indicate a transfer of programmatic control to a
997 destination selected algorithmically, often by lookup in a table of function
998 \&\fBreferences\fR or, in the case of object \fBmethods\fR, by traversing the
999 inheritance tree looking for the most specific definition for the method.
1000 .IX Xref "dispatching"
1001 .IP distribution 4
1002 .IX Item "distribution"
1003 A standard, bundled release of a system of
1004 software. The default usage implies source code is included. If that is not
1005 the case, it will be called a “binary\-only” distribution.
1006 .IX Xref "distributions, defined"
1007 .IP dual\-lived 4
1008 .IX Item "dual-lived"
1009 Some modules live both in the
1010 \&\fBStandard Library\fR and on \fBCPAN\fR. These modules might be developed on two
1011 tracks as people modify either version. The trend currently is to untangle
1012 these situations.
1013 .IX Xref "dual–lived modules modules, dual–lived"
1014 .IP dweomer 4
1015 .IX Item "dweomer"
1016 An enchantment, illusion, phantasm, or jugglery. Said when Perl’s
1017 magical \fBdwimmer\fR effects don’t do what you expect, but rather seem to be
1018 the product of arcane \fIdweomercraft\fR, sorcery, or wonder working. [From
1019 Middle English.]
1020 .IX Xref "dweomer"
1021 .IP dwimmer 4
1022 .IX Item "dwimmer"
1023 DWIM is
1024 an acronym for “Do What I Mean”, the principle that something
1025 should just do what you want it to do without an undue amount of fuss. A bit
1026 of code that does “dwimming” is a “dwimmer”. Dwimming can require a great
1027 deal of behind\-the\-scenes magic, which (if it doesn’t stay properly behind
1028 the scenes) is called a \fBdweomer\fR instead.
1029 .IX Xref "DWIM (Do What I Mean) principle Do What I Mean (DWIM) principle dwimming"
1030 .IP "dynamic scoping" 4
1031 .IX Item "dynamic scoping"
1032 Dynamic scoping works over a \fBdynamic
1033 scope\fR, making variables visible throughout the rest of the \fBblock\fR in
1034 which they are first used and in any \fBsubroutines\fR that are called by the
1035 rest of the block. Dynamically scoped variables can have their values
1036 temporarily changed (and implicitly restored later) by a \f(CW\*(C`local\*(C'\fR operator.
1037 (Compare \fBlexical scoping\fR.) Used more loosely to mean how a subroutine
1038 that is in the middle of calling another subroutine “contains” that
1039 subroutine at \fBruntime\fR.
1040 .IX Xref "dynamic scope scopes, dynamic"
1041 .SS E
1042 .IX Subsection "E"
1043 .IP eclectic 4
1044 .IX Item "eclectic"
1045 Derived from many sources. Some would say \fItoo\fR many.
1046 .IX Xref "eclectic (term)"
1047 .IP element 4
1048 .IX Item "element"
1049 A basic building block. When you’re talking about an
1050 \&\fBarray\fR, it’s one of the items that make up the array.
1051 .IX Xref "elements, about"
1052 .IP embedding 4
1053 .IX Item "embedding"
1054 When something is contained in something else,
1055 particularly when that might be considered surprising: “I’ve embedded a
1056 complete Perl interpreter in my editor!”
1057 .IX Xref "embedding (term)"
1058 .IP "empty subclass test" 4
1059 .IX Item "empty subclass test"
1060 The notion that an empty \fBderived class\fR should
1061 behave exactly like its \fBbase class\fR.
1062 .IX Xref "empty subclass test"
1063 .IP encapsulation 4
1064 .IX Item "encapsulation"
1065 The veil of abstraction separating the \fBinterface\fR
1066 from the \fBimplementation\fR (whether enforced or not), which mandates that
1067 all access to an \fBobject\fR’s state be through \fBmethods\fR alone.
1068 .IX Xref "encapsulation (term)"
1069 .IP endian 4
1070 .IX Item "endian"
1071 See \fBlittle\-endian\fR and \fBbig\-endian\fR.
1072 .IP "en passant" 4
1073 .IX Item "en passant"
1074 When you change a \fBvalue\fR as it is being copied. [From
1075 French “in passing”, as in the exotic pawn\-capturing maneuver in chess.]
1076 .IX Xref "en passant (term)"
1077 .IP environment 4
1078 .IX Item "environment"
1079 The collective set of \fBenvironment variables\fR your
1080 \&\fBprocess\fR inherits from its parent. Accessed via \f(CW%ENV\fR.
1081 .IX Xref "environment (term)"
1082 .IP "environment variable" 4
1083 .IX Item "environment variable"
1084 A mechanism by which some high\-level agent such as a user can pass its
1085 preferences down to its future offspring (child \fBprocesses\fR, grandchild
1086 processes, great\-grandchild processes, and so on). Each environment
1087 variable is a \fBkey\fR/\fBvalue\fR pair, like one entry in a \fBhash\fR.
1088 .IX Xref "environment variables variables, environment environment variables"
1089 .IP EOF 4
1090 .IX Item "EOF"
1091 End of File. Sometimes used
1092 metaphorically as the terminating string of a \fBhere document\fR.
1093 .IX Xref "End of File (EOF) EOF (End of File)"
1094 .IP errno 4
1095 .IX Item "errno"
1096 The error number returned by a
1097 \&\fBsyscall\fR when it fails. Perl refers to the error by the name \f(CW$!\fR (or
1098 \&\f(CW$OS_ERROR\fR if you use the English module).
1099 .IX Xref "errno (error number) error number (errno)"
1100 .IP error 4
1101 .IX Item "error"
1102 See \fBexception\fR or \fBfatal error\fR.
1103 .IP "escape sequence" 4
1104 .IX Item "escape sequence"
1105 See \fBmetasymbol\fR.
1106 .IP exception 4
1107 .IX Item "exception"
1108 A fancy term for an error. See \fBfatal error\fR.
1109 .IP "exception handling" 4
1110 .IX Item "exception handling"
1111 The way a program responds to an error. The
1112 exception\-handling mechanism in Perl is the \f(CW\*(C`eval\*(C'\fR operator.
1113 .IX Xref "exception handling, defined"
1114 .IP exec 4
1115 .IX Item "exec"
1116 To throw away the current \fBprocess\fR’s program and replace
1117 it with another, without exiting the process or relinquishing any resources
1118 held (apart from the old memory image).
1119 .IX Xref "exec function"
1120 .IP "executable file" 4
1121 .IX Item "executable file"
1122 A \fBfile\fR that is specially marked to
1123 tell the \fBoperating system\fR that it’s okay to run this file as a program.
1124 Usually shortened to “executable”.
1125 .IX Xref "executable files files, executable"
1126 .IP execute 4
1127 .IX Item "execute"
1128 To run a \fBprogram\fR or \fBsubroutine\fR. (Has nothing to do
1129 with the \f(CW\*(C`kill\*(C'\fR built\-in, unless you’re trying to run a \fBsignal handler\fR.)
1130 .IX Xref "execute (term)"
1131 .IP "execute bit" 4
1132 .IX Item "execute bit"
1133 The special mark that tells the operating system it can run
1134 this program. There are actually three execute bits under Unix, and which
1135 bit gets used depends on whether you own the file singularly, collectively,
1136 or not at all.
1137 .IX Xref "execute bit"
1138 .IP "exit status" 4
1139 .IX Item "exit status"
1140 See \fBstatus\fR.
1141 .IP exploit 4
1142 .IX Item "exploit"
1143 Used as a noun in this case, this refers to a known way
1144 to compromise a program to get it to do something the author didn’t intend.
1145 Your task is to write unexploitable programs.
1146 .IX Xref "exploits, security"
1147 .IP export 4
1148 .IX Item "export"
1149 To make symbols from a \fBmodule\fR available for
1150 \&\fBimport\fR by other modules.
1151 .IX Xref "exporting, defined"
1152 .IP expression 4
1153 .IX Item "expression"
1154 Anything you can legally say in a spot
1155 where a \fBvalue\fR is required. Typically composed of \fBliterals\fR,
1156 \&\fBvariables\fR, \fBoperators\fR, \fBfunctions\fR, and \fBsubroutine\fR calls, not
1157 necessarily in that order.
1158 .IX Xref "expressions, defined expressions"
1159 .IP extension 4
1160 .IX Item "extension"
1161 A Perl module that also pulls in \fBcompiled\fR C or C++
1162 code. More generally, any experimental option that can be \fBcompiled\fR into
1163 Perl, such as multithreading.
1164 .IX Xref "extensions, defined"
1165 .SS F
1166 .IX Subsection "F"
1167 .IP false 4
1168 .IX Item "false"
1169 In Perl, any value that would look like \f(CW""\fR
1170 or \f(CW"0"\fR if evaluated in a string context. Since undefined values evaluate
1171 to \f(CW""\fR, all undefined values are false, but not all false values are
1172 undefined.
1173 .IX Xref "false values values, false"
1174 .IP FAQ 4
1175 .IX Item "FAQ"
1176 Frequently Asked Question (although not necessarily
1177 frequently answered, especially if the answer appears in the Perl FAQ
1178 shipped standard with Perl).
1179 .IX Xref "FAQ (Frequently Asked Question) Frequently Asked Question (FAQ)"
1180 .IP "fatal error" 4
1181 .IX Item "fatal error"
1182 An uncaught \fBexception\fR, which causes termination of the
1183 \&\fBprocess\fR after printing a message on your \fBstandard error\fR stream. Errors
1184 that happen inside an \f(CW\*(C`eval\*(C'\fR are not fatal. Instead, the \f(CW\*(C`eval\*(C'\fR terminates
1185 after placing the exception message in the \f(CW$@\fR (\f(CW$EVAL_ERROR\fR) variable.
1186 You can try to provoke a fatal error with the \f(CW\*(C`die\*(C'\fR operator (known as
1187 throwing or raising an exception), but this may be caught by a dynamically
1188 enclosing \f(CW\*(C`eval\*(C'\fR. If not caught, the \f(CW\*(C`die\*(C'\fR becomes a fatal error.
1189 .IX Xref "fatal errors"
1190 .IP "feeping creaturism" 4
1191 .IX Item "feeping creaturism"
1192 A spoonerism of “creeping
1193 featurism”, noting the biological urge to add just one more feature to
1194 a program.
1195 .IX Xref "feeping creaturism creeping featurism"
1196 .IP field 4
1197 .IX Item "field"
1198 A single piece of numeric or string data that is part of a
1199 longer \fBstring\fR, \fBrecord\fR, or \fBline\fR. Variable\-width fields are usually
1200 split up by \fBseparators\fR (so use \f(CW\*(C`split\*(C'\fR to extract the fields), while
1201 fixed\-width fields are usually at fixed positions (so use \f(CW\*(C`unpack\*(C'\fR).
1202 \&\fBInstance variables\fR are also known as “fields”.
1203 .IX Xref "fields (term)"
1204 .IP FIFO 4
1205 .IX Item "FIFO"
1206 First In, First Out. See also \fBLIFO\fR. Also a nickname for a \fBnamed pipe\fR.
1207 .IX Xref "First In, First Out (FIFO) FIFO (First In, First Out)"
1208 .IP file 4
1209 .IX Item "file"
1210 A named collection of data, usually stored on disk in a
1211 \&\fBdirectory\fR in a \fBfilesystem\fR. Roughly like a document, if you’re into
1212 office metaphors. In modern filesystems, you can actually give a file more
1213 than one name. Some files have special properties, like directories and
1214 devices.
1215 .IX Xref "files, defined"
1216 .IP "file descriptor" 4
1217 .IX Item "file descriptor"
1218 The little number the \fBoperating
1219 system\fR uses to keep track of which opened \fBfile\fR you’re talking about.
1220 Perl hides the file descriptor inside a \fBstandard I/O\fR stream and then
1221 attaches the stream to a \fBfilehandle\fR.
1222 .IX Xref "file descriptors descriptors, file"
1223 .IP fileglob 4
1224 .IX Item "fileglob"
1225 A “wildcard” match on \fBfilenames\fR. See the \f(CW\*(C`glob\*(C'\fR function.
1226 .IX Xref "fileglobs"
1227 .IP filehandle 4
1228 .IX Item "filehandle"
1229 An identifier (not necessarily related to the real
1230 name of a file) that represents a particular instance of opening a file,
1231 until you close it. If you’re going to open and close several different
1232 files in succession, it’s fine to open each of them with the same
1233 filehandle, so you don’t have to write out separate code to process each
1234 file.
1235 .IX Xref "filehandles, about"
1236 .IP filename 4
1237 .IX Item "filename"
1238 One name for a file. This name is listed in a
1239 \&\fBdirectory\fR. You can use it in an \f(CW\*(C`open\*(C'\fR to tell the \fBoperating system\fR
1240 exactly which file you want to open, and associate the file with a
1241 \&\fBfilehandle\fR, which will carry the subsequent identity of that file in
1242 your program, until you close it.
1243 .IX Xref "filenames, about"
1244 .IP filesystem 4
1245 .IX Item "filesystem"
1246 A set of \fBdirectories\fR and \fBfiles\fR residing on a
1247 partition of the disk. Sometimes known as a “partition”. You can change the
1248 file’s name or even move a file around from directory to directory within a
1249 filesystem without actually moving the file itself, at least under Unix.
1250 .IX Xref "filesystems, defined"
1251 .IP "file test operator" 4
1252 .IX Item "file test operator"
1253 A built\-in unary operator that you use to
1254 determine whether something is \fBtrue\fR about a file, such as \f(CW–o
1255 $filename\fR to test whether you’re the owner of the file.
1256 .IX Xref "file test operators, about"
1257 .IP filter 4
1258 .IX Item "filter"
1259 A program designed to take a \fBstream\fR of input and
1260 transform it into a stream of output.
1261 .IX Xref "filters, defined"
1262 .IP first\-come 4
1263 .IX Item "first-come"
1264 The first \fBPAUSE\fR
1265 author to upload a \fBnamespace\fR automatically becomes the \fBprimary
1266 maintainer\fR for that namespace. The “first come” permissions distinguish a
1267 \&\fBprimary maintainer\fR who was assigned that role from one who received it
1268 automatically.
1269 .IX Xref "first–come permissions permissions, first–come"
1270 .IP flag 4
1271 .IX Item "flag"
1272 We tend to avoid this term because it means so many things.
1273 It may mean a command\-line \fBswitch\fR that takes no argument itself (such as
1274 Perl’s \f(CW\*(C`–n\*(C'\fR and \f(CW\*(C`–p\*(C'\fR flags) or, less frequently, a single\-bit indicator
1275 (such as the \f(CW\*(C`O_CREAT\*(C'\fR and \f(CW\*(C`O_EXCL\*(C'\fR flags used in \f(CW\*(C`sysopen\*(C'\fR). Sometimes
1276 informally used to refer to certain regex modifiers.
1277 .IX Xref "flags (term)"
1278 .IP "floating point" 4
1279 .IX Item "floating point"
1280 A method of storing
1281 numbers in “scientific notation”, such that the precision of the number is
1282 independent of its magnitude (the decimal point “floats”). Perl does its
1283 numeric work with floating\-point numbers (sometimes called “floats”) when
1284 it can’t get away with using \fBintegers\fR. Floating\-point numbers are mere
1285 approximations of real numbers.
1286 .IX Xref "floating point methods methods, floating point"
1287 .IP flush 4
1288 .IX Item "flush"
1289 The act of emptying a \fBbuffer\fR,
1290 often before it’s full.
1291 .IX Xref "flushing buffers buffers, flushing"
1292 .IP FMTEYEWTK 4
1293 .IX Item "FMTEYEWTK"
1294 Far More Than Everything You Ever Wanted To Know. An
1295 exhaustive treatise on one narrow topic, something of a super\-\fBFAQ\fR. See
1296 Tom for far more.
1297 .IX Xref "FMTEYEWTK acronym"
1298 .IP foldcase 4
1299 .IX Item "foldcase"
1300 The casemap used in Unicode when comparing or matching
1301 without regard to case. Comparing lower\-, title\-, or uppercase are all
1302 unreliable due to Unicode’s complex, one\-to\-many case mappings. Foldcase is
1303 a \fBlowercase\fR variant (using a partially decomposed \fBnormalization\fR form
1304 for certain codepoints) created specifically to resolve this.
1305 .IX Xref "foldcase (term)"
1306 .IP fork 4
1307 .IX Item "fork"
1308 To create a child \fBprocess\fR
1309 identical to the parent process at its moment of conception, at least until
1310 it gets ideas of its own. A thread with protected memory.
1311 .IX Xref "forking processes processes, forking"
1312 .IP "formal arguments" 4
1313 .IX Item "formal arguments"
1314 The generic names by which a
1315 \&\fBsubroutine\fR knows its \fBarguments\fR. In many languages, formal arguments
1316 are always given individual names; in Perl, the formal arguments are just
1317 the elements of an array. The formal arguments to a Perl program are
1318 \&\f(CW$ARGV[0]\fR, \f(CW$ARGV[1]\fR, and so on. Similarly, the formal arguments to a
1319 Perl subroutine are \f(CW$_[0]\fR, \f(CW$_[1]\fR, and so on. You may give the
1320 arguments individual names by assigning the values to a \f(CW\*(C`my\*(C'\fR list. See
1321 also \fBactual arguments\fR.
1322 .IX Xref "formal arguments arguments, formal"
1323 .IP format 4
1324 .IX Item "format"
1325 A specification of how many spaces and digits and things
1326 to put somewhere so that whatever you’re printing comes out nice and
1327 pretty.
1328 .IX Xref "formats, defined"
1329 .IP "freely available" 4
1330 .IX Item "freely available"
1331 Means you don’t have to pay money to get it, but
1332 the copyright on it may still belong to someone else (like Larry).
1333 .IX Xref "freely available (term)"
1334 .IP "freely redistributable" 4
1335 .IX Item "freely redistributable"
1336 Means you’re not in legal trouble if you
1337 give a bootleg copy of it to your friends and we find out about it. In
1338 fact, we’d rather you gave a copy to all your friends.
1339 .IX Xref "freely redistributable (term)"
1340 .IP freeware 4
1341 .IX Item "freeware"
1342 Historically, any software that you give away,
1343 particularly if you make the source code available as well. Now often
1344 called \fBopen source software\fR. Recently there has been a trend to use the
1345 term in contradistinction to \fBopen source software\fR, to refer only to free
1346 software released under the Free Software
1347 Foundation’s GPL (General Public License), but this is difficult to justify
1348 etymologically.
1349 .IX Xref "freeware (term) Free Software Foundation"
1350 .IP function 4
1351 .IX Item "function"
1352 Mathematically, a mapping of each of a set of input
1353 values to a particular output value. In computers, refers to a
1354 \&\fBsubroutine\fR or \fBoperator\fR that returns a \fBvalue\fR. It may or may not
1355 have input values (called \fBarguments\fR).
1356 .IX Xref "functions, about"
1357 .IP "funny character" 4
1358 .IX Item "funny character"
1359 Someone like Larry, or one of his
1360 peculiar friends. Also refers to the strange prefixes that Perl requires as
1361 noun markers on its variables.
1362 .IX Xref "funny characters characters, funny"
1363 .SS G
1364 .IX Subsection "G"
1365 .IP "garbage collection" 4
1366 .IX Item "garbage collection"
1367 A misnamed feature—it should be called,
1368 “expecting your mother to pick up after you”. Strictly speaking, Perl
1369 doesn’t do this, but it relies on a reference\-counting mechanism to keep
1370 things tidy. However, we rarely speak strictly and will often refer to the
1371 reference\-counting scheme as a form of garbage collection. (If it’s any
1372 comfort, when your interpreter exits, a “real” garbage collector runs to
1373 make sure everything is cleaned up if you’ve been messy with circular
1374 references and such.)
1375 .IX Xref "garbage collection, defined"
1376 .IP GID 4
1377 .IX Item "GID"
1378 Group ID—in Unix, the numeric group ID
1379 that the \fBoperating system\fR uses to identify you and members of your
1380 \&\fBgroup\fR.
1381 .IX Xref "GID (Group ID) Group ID (GID)"
1382 .IP glob 4
1383 .IX Item "glob"
1384 Strictly, the shell’s \f(CW\*(C`*\*(C'\fR character, which will match
1385 a “glob” of characters when you’re trying to generate a list of filenames.
1386 Loosely, the act of using globs and similar symbols to do pattern matching.
1387 See also \fBfileglob\fR and \fBtypeglob\fR.
1388 .IX Xref "glob (* character)"
1389 .IP global 4
1390 .IX Item "global"
1391 Something you can see from anywhere, usually used of
1392 \&\fBvariables\fR and \fBsubroutines\fR that are visible everywhere in your
1393 program. In Perl, only certain special variables are truly global—most
1394 variables (and all subroutines) exist only in the current \fBpackage\fR.
1395 Global variables can be declared with \f(CW\*(C`our\*(C'\fR. See “Global Declarations” in
1396 Camel chapter 4, “Statements and Declarations”.
1397 .IX Xref "global (term)"
1398 .IP "global destruction" 4
1399 .IX Item "global destruction"
1400 The \fBgarbage collection\fR of globals (and the running
1401 of any associated object destructors) that takes place when a Perl
1402 \&\fBinterpreter\fR is being shut down. Global destruction should not be
1403 confused with the Apocalypse, except perhaps when it should.
1404 .IX Xref "global destruction"
1405 .IP "glue language" 4
1406 .IX Item "glue language"
1407 A language such as Perl that is good at hooking things
1408 together that weren’t intended to be hooked together.
1409 .IX Xref "glue language"
1410 .IP granularity 4
1411 .IX Item "granularity"
1412 The size of the pieces you’re dealing with, mentally
1413 speaking.
1414 .IX Xref "granularity"
1415 .IP grapheme 4
1416 .IX Item "grapheme"
1417 A graphene is an allotrope of carbon arranged in a
1418 hexagonal crystal lattice one atom thick. A \fBgrapheme\fR, or more fully, a
1419 \&\fIgrapheme cluster string\fR is a single user\-visible \fBcharacter\fR, which may
1420 in turn be several characters (\fBcodepoints\fR) long. For example, a carriage
1421 return plus a line feed is a single grapheme but two characters, while a
1422 “ȫ” is a single grapheme but one, two, or even three characters, depending
1423 on \fBnormalization\fR.
1424 .IX Xref "graphemes, defined"
1425 .IP greedy 4
1426 .IX Item "greedy"
1427 A \fBsubpattern\fR whose
1428 \&\fBquantifier\fR wants to match as many things as possible.
1429 .IX Xref "greedy subpatterns subpatterns, greedy"
1430 .IP grep 4
1431 .IX Item "grep"
1432 Originally from the old Unix editor command for “Globally
1433 search for a Regular Expression and Print it”, now used in the general
1434 sense of any kind of search, especially text searches. Perl has a built\-in
1435 \&\f(CW\*(C`grep\*(C'\fR function that searches a list for elements matching any given
1436 criterion, whereas the \fBgrep\fR(1) program searches for lines matching a
1437 \&\fBregular expression\fR in one or more files.
1438 .IX Xref "grep function"
1439 .IP group 4
1440 .IX Item "group"
1441 A set of users of which you are a member. In some
1442 operating systems (like Unix), you can give certain file access permissions
1443 to other members of your group.
1444 .IX Xref "groups, defined"
1445 .IP GV 4
1446 .IX Item "GV"
1447 An internal “glob value” typedef,
1448 holding a \fBtypeglob\fR. The \f(CW\*(C`GV\*(C'\fR type is a subclass of \fBSV\fR.
1449 .IX Xref "GV (glob value) glob value (GV)"
1450 .SS H
1451 .IX Subsection "H"
1452 .IP hacker 4
1453 .IX Item "hacker"
1454 Someone who is brilliantly persistent in solving technical
1455 problems, whether these involve golfing, fighting orcs, or programming.
1456 Hacker is a neutral term, morally speaking. Good hackers are not to be
1457 confused with evil \fBcrackers\fR or clueless \fBscript kiddies\fR. If you
1458 confuse them, we will presume that you are either evil or clueless.
1459 .IX Xref "hackers"
1460 .IP handler 4
1461 .IX Item "handler"
1462 A \fBsubroutine\fR or \fBmethod\fR that Perl calls when your
1463 program needs to respond to some internal event, such as a \fBsignal\fR, or an
1464 encounter with an operator subject to \fBoperator overloading\fR. See also
1465 \&\fBcallback\fR.
1466 .IX Xref "handlers, defined"
1467 .IP "hard reference" 4
1468 .IX Item "hard reference"
1469 A \fBscalar\fR \fBvalue\fR containing
1470 the actual address of a \fBreferent\fR, such that the referent’s \fBreference\fR
1471 count accounts for it. (Some hard references are held internally, such as
1472 the implicit reference from one of a \fBtypeglob\fR’s variable slots to its
1473 corresponding referent.) A hard reference is different from a \fBsymbolic
1474 reference\fR.
1475 .IX Xref "hard references, about references, hard"
1476 .IP hash 4
1477 .IX Item "hash"
1478 An unordered association of \fBkey\fR/\fBvalue\fR pairs, stored such that you can easily use a string \fBkey\fR to
1479 look up its associated data \fBvalue\fR. This glossary is like a hash, where
1480 the word to be defined is the key and the definition is the value. A hash
1481 is also sometimes septisyllabically called an “associative array”, which is
1482 a pretty good reason for simply calling it a “hash” instead.
1483 .IX Xref "hashes, about key value pairs, about"
1484 .IP "hash table" 4
1485 .IX Item "hash table"
1486 A data structure used internally by Perl for implementing
1487 associative arrays (hashes) efficiently. See also \fBbucket\fR.
1488 .IX Xref "hash tables"
1489 .IP "header file" 4
1490 .IX Item "header file"
1491 A file containing certain required
1492 definitions that you must include “ahead” of the rest of your program to do
1493 certain obscure operations. A C header file has a \fI.h\fR extension. Perl
1494 doesn’t really have header files, though historically Perl has sometimes
1495 used translated \fI.h\fR files with a \fI.ph\fR extension. See \f(CW\*(C`require\*(C'\fR in
1496 Camel chapter 27, “Functions”. (Header files have been superseded by the
1497 \&\fBmodule\fR mechanism.)
1498 .IX Xref "header files files, header"
1499 .IP "here document" 4
1500 .IX Item "here document"
1501 So called because of a similar construct in \fBshells\fR that
1502 pretends that the \fBlines\fR following the \fBcommand\fR are a separate \fBfile\fR
1503 to be fed to the command, up to some terminating string. In Perl, however,
1504 it’s just a fancy form of quoting.
1505 .IX Xref "here documents"
1506 .IP hexadecimal 4
1507 .IX Item "hexadecimal"
1508 A number in base 16, “hex” for short. The digits for 10
1509 through 15 are customarily represented by the letters \f(CW\*(C`a\*(C'\fR through \f(CW\*(C`f\*(C'\fR.
1510 Hexadecimal constants in Perl start with \f(CW\*(C`0x\*(C'\fR. See also the \f(CW\*(C`hex\*(C'\fR
1511 function in Camel chapter 27, “Functions”.
1512 .IX Xref "hexadecimals"
1513 .IP "home directory" 4
1514 .IX Item "home directory"
1515 The directory you are put into when
1516 you log in. On a Unix system, the name is often placed into \f(CW$ENV{HOME}\fR
1517 or \f(CW$ENV{LOGDIR}\fR by \fIlogin\fR, but you can also find it with
1518 \&\f(CW\*(C`(get\*(C'\fR\f(CW\*(C`pwuid($<))[7]\*(C'\fR. (Some platforms do not have a concept of a
1519 home directory.)
1520 .IX Xref "home directory directories, home"
1521 .IP host 4
1522 .IX Item "host"
1523 The computer on which a program or other data resides.
1524 .IX Xref "host computers"
1525 .IP hubris 4
1526 .IX Item "hubris"
1527 Excessive pride, the sort of thing for which Zeus zaps
1528 you. Also the quality that makes you write (and maintain) programs that
1529 other people won’t want to say bad things about. Hence, the third great
1530 virtue of a programmer. See also \fBlaziness\fR and \fBimpatience\fR.
1531 .IX Xref "hubris quality"
1532 .IP HV 4
1533 .IX Item "HV"
1534 Short for a “hash value” typedef, which
1535 holds Perl’s internal representation of a hash. The \f(CW\*(C`HV\*(C'\fR type is a
1536 subclass of \fBSV\fR.
1537 .IX Xref "HV (hash value) hash value (HV)"
1538 .SS I
1539 .IX Subsection "I"
1540 .IP identifier 4
1541 .IX Item "identifier"
1542 A legally formed name for most anything in which a
1543 computer program might be interested. Many languages (including Perl) allow
1544 identifiers to start with an alphabetic character, and then contain
1545 alphabetics and digits. Perl also allows connector punctuation like the
1546 underscore character wherever it allows alphabetics. (Perl also has more
1547 complicated names, like \fBqualified\fR names.)
1548 .IX Xref "identifiers, defined"
1549 .IP impatience 4
1550 .IX Item "impatience"
1551 The anger you feel when the computer is being lazy.
1552 This makes you write programs that don’t just react to your needs, but
1553 actually anticipate them. Or at least that pretend to. Hence, the second
1554 great virtue of a programmer. See also \fBlaziness\fR and \fBhubris\fR.
1555 .IX Xref "impatience quality"
1556 .IP implementation 4
1557 .IX Item "implementation"
1558 How a piece of code actually goes about doing its
1559 job. Users of the code should not count on implementation details staying
1560 the same unless they are part of the published \fBinterface\fR.
1561 .IX Xref "implementation (term)"
1562 .IP import 4
1563 .IX Item "import"
1564 To gain access to symbols that are exported from another
1565 module. See \f(CW\*(C`use\*(C'\fR in Camel chapter 27, “Functions”.
1566 .IX Xref "import (term)"
1567 .IP increment 4
1568 .IX Item "increment"
1569 To increase the value of
1570 something by 1 (or by some other number, if so specified).
1571 .IX Xref "incrementing values values, incrementing"
1572 .IP indexing 4
1573 .IX Item "indexing"
1574 In olden days, the act of looking up a \fBkey\fR in an
1575 actual index (such as a phone book). But now it\*(Aqs merely the act of using
1576 any kind of key or position to find the corresponding \fBvalue\fR, even if no
1577 index is involved. Things have degenerated to the point that Perl’s
1578 \&\f(CW\*(C`index\*(C'\fR function merely locates the position (index) of one string in
1579 another.
1580 .IX Xref "indexing (term)"
1581 .IP "indirect filehandle" 4
1582 .IX Item "indirect filehandle"
1583 An \fBexpression\fR that
1584 evaluates to something that can be used as a \fBfilehandle\fR: a \fBstring\fR
1585 (filehandle name), a \fBtypeglob\fR, a typeglob \fBreference\fR, or a low\-level
1586 \&\fBIO\fR object.
1587 .IX Xref "indirect filehandles filehandles, indirect"
1588 .IP indirection 4
1589 .IX Item "indirection"
1590 If something in a program isn’t the value you’re
1591 looking for but indicates where the value is, that’s indirection. This can
1592 be done with either \fBsymbolic references\fR or \fBhard\fR.
1593 .IX Xref "indirection (term)"
1594 .IP "indirect object" 4
1595 .IX Item "indirect object"
1596 In English grammar, a short
1597 noun phrase between a verb and its direct object indicating the beneficiary
1598 or recipient of the action. In Perl, \f(CW\*(C`print STDOUT "$foo\en";\*(C'\fR can be
1599 understood as “verb indirect\-object object”, where \f(CW\*(C`STDOUT\*(C'\fR is the
1600 recipient of the \f(CW\*(C`print\*(C'\fR action, and \f(CW"$foo"\fR is the object being
1601 printed. Similarly, when invoking a \fBmethod\fR, you might place the
1602 invocant in the dative slot between the method and its arguments:
1603 .IX Xref "indirect objects, defined objects, indirect"
1604 .Sp
1605 .Vb 3
1606 \& $gollum = new Pathetic::Creature "Sméagol";
1607 \& give $gollum "Fisssssh!";
1608 \& give $gollum "Precious!";
1609 .Ve
1610 .IP "indirect object slot" 4
1611 .IX Item "indirect object slot"
1612 The syntactic position falling between a method call
1613 and its arguments when using the indirect object invocation syntax. (The
1614 slot is distinguished by the absence of a comma between it and the next
1615 argument.) \f(CW\*(C`STDERR\*(C'\fR is in the indirect object slot here:
1616 .IX Xref "indirect object slot"
1617 .Sp
1618 .Vb 1
1619 \& print STDERR "Awake! Awake! Fear, Fire, Foes! Awake!\en";
1620 .Ve
1621 .IP infix 4
1622 .IX Item "infix"
1623 An \fBoperator\fR that comes in between its \fBoperands\fR,
1624 such as multiplication in \f(CW\*(C`24 * 7\*(C'\fR.
1625 .IX Xref "infix operators"
1626 .IP inheritance 4
1627 .IX Item "inheritance"
1628 What you get from your ancestors, genetically or
1629 otherwise. If you happen to be a \fBclass\fR, your ancestors are called \fBbase
1630 classes\fR and your descendants are called \fBderived classes\fR. See \fBsingle
1631 inheritance\fR and \fBmultiple inheritance\fR.
1632 .IX Xref "inheritance, defined"
1633 .IP instance 4
1634 .IX Item "instance"
1635 Short for “an instance of a class”, meaning an \fBobject\fR
1636 of that \fBclass\fR.
1637 .IX Xref "instances (term)"
1638 .IP "instance data" 4
1639 .IX Item "instance data"
1640 See \fBinstance variable\fR.
1641 .IX Xref "instance data"
1642 .IP "instance method" 4
1643 .IX Item "instance method"
1644 A \fBmethod\fR of an \fBobject\fR, as
1645 opposed to a \fBclass method\fR.
1646 .IX Xref "instance methods methods, instance"
1647 .Sp
1648 A \fBmethod\fR whose \fBinvocant\fR is an \fBobject\fR, not a \fBpackage\fR name. Every
1649 object of a class shares all the methods of that class, so an instance
1650 method applies to all instances of the class, rather than applying to a
1651 particular instance. Also see \fBclass method\fR.
1652 .IP "instance variable" 4
1653 .IX Item "instance variable"
1654 An \fBattribute\fR of an \fBobject\fR; data stored with the particular object rather than with the class
1655 as a whole.
1656 .IX Xref "instance variables, defined variables, instance"
1657 .IP integer 4
1658 .IX Item "integer"
1659 A number with no fractional (decimal) part. A counting
1660 number, like 1, 2, 3, and so on, but including 0 and the negatives.
1661 .IX Xref "integers (term)"
1662 .IP interface 4
1663 .IX Item "interface"
1664 The services a piece of code promises to provide
1665 forever, in contrast to its \fBimplementation\fR, which it should feel free to
1666 change whenever it likes.
1667 .IX Xref "interfaces (term)"
1668 .IP interpolation 4
1669 .IX Item "interpolation"
1670 The insertion of a scalar or list value somewhere
1671 in the middle of another value, such that it appears to have been there all
1672 along. In Perl, variable interpolation happens in double\-quoted strings and
1673 patterns, and list interpolation occurs when constructing the list of
1674 values to pass to a list operator or other such construct that takes a
1675 \&\fR\f(CI\*(C`LIST\*(C'\fR\fI\fR.
1676 .IX Xref "interpolation, defined"
1677 .IP interpreter 4
1678 .IX Item "interpreter"
1679 Strictly speaking, a program that reads a second
1680 program and does what the second program says directly without turning the
1681 program into a different form first, which is what \fBcompilers\fR do. Perl is
1682 not an interpreter by this definition, because it contains a kind of
1683 compiler that takes a program and turns it into a more executable form
1684 (\fBsyntax trees\fR) within the \fIperl\fR process itself, which the Perl
1685 \&\fBruntime\fR system then interprets.
1686 .IX Xref "interpreters, defined"
1687 .IP invocant 4
1688 .IX Item "invocant"
1689 The agent on whose behalf a \fBmethod\fR is invoked. In a
1690 \&\fBclass\fR method, the invocant is a package name. In an \fBinstance\fR method,
1691 the invocant is an object reference.
1692 .IX Xref "invocants, defined"
1693 .IP invocation 4
1694 .IX Item "invocation"
1695 The act of calling up a deity, daemon, program,
1696 method, subroutine, or function to get it to do what you think it’s
1697 supposed to do. We usually “call” subroutines but “invoke” methods, since
1698 it sounds cooler.
1699 .IX Xref "invocation, method"
1700 .IP I/O 4
1701 .IX Item "I/O"
1702 Input from, or output to, a \fBfile\fR or \fBdevice\fR.
1703 .IX Xref "I O (Input Output), defined Input Output (I O), defined"
1704 .IP IO 4
1705 .IX Item "IO"
1706 An internal I/O object. Can also mean \fBindirect object\fR.
1707 .IP "I/O layer" 4
1708 .IX Item "I/O layer"
1709 One of the filters between the data and what you get as input
1710 or what you end up with as output.
1711 .IX Xref "I O layer"
1712 .IP IPA 4
1713 .IX Item "IPA"
1714 India Pale Ale. Also the International Phonetic Alphabet, the
1715 standard alphabet used for phonetic notation worldwide. Draws heavily on
1716 Unicode, including many combining characters.
1717 .IX Xref "International Phonetic Alphabet (IPA) IPA (International Phonetic Alphabet)"
1718 .IP IP 4
1719 .IX Item "IP"
1720 Internet Protocol, or
1721 Intellectual
1722 Property.
1723 .IX Xref "Internet Protocol (IP) IP (Internet Protocol) IP (Intellectual Property) Intellectual Property (IP)"
1724 .IP IPC 4
1725 .IX Item "IPC"
1726 Interprocess Communication.
1727 .IX Xref "Interprocess Communication IPC (Interprocess Communication), about communication"
1728 .IP is\-a 4
1729 .IX Item "is-a"
1730 A relationship between two \fBobjects\fR in which one
1731 object is considered to be a more specific version of the other, generic
1732 object: “A camel is a mammal.” Since the generic object really only exists
1733 in a Platonic sense, we usually add a little abstraction to the notion of
1734 objects and think of the relationship as being between a generic \fBbase
1735 class\fR and a specific \fBderived class\fR. Oddly enough, Platonic classes
1736 don’t always have Platonic relationships—see \fBinheritance\fR.
1737 .IX Xref "is–a relationship"
1738 .IP iteration 4
1739 .IX Item "iteration"
1740 Doing something repeatedly.
1741 .IX Xref "iteration"
1742 .IP iterator 4
1743 .IX Item "iterator"
1744 A special programming gizmo that keeps track of where you are
1745 in something that you’re trying to iterate over. The \f(CW\*(C`foreach\*(C'\fR loop in
1746 Perl contains an iterator; so does a hash, allowing you to \f(CW\*(C`each\*(C'\fR through
1747 it.
1748 .IX Xref "iterators"
1749 .IP IV 4
1750 .IX Item "IV"
1751 The integer four, not to be
1752 confused with six, Tom’s favorite editor. IV also means an internal Integer
1753 Value of the type a \fBscalar\fR can hold, not to be confused with an \fBNV\fR.
1754 .IX Xref "IV (Integer Value) Integer Value (IV)"
1755 .SS J
1756 .IX Subsection "J"
1757 .IP JAPH 4
1758 .IX Item "JAPH"
1759 “Just Another Perl Hacker”, a clever but cryptic bit of Perl
1760 code that, when executed, evaluates to that string. Often used to
1761 illustrate a particular Perl feature, and something of an ongoing
1762 Obfuscated Perl Contest seen in USENET signatures.
1763 .IX Xref "JAPH acronym"
1764 .SS K
1765 .IX Subsection "K"
1766 .IP key 4
1767 .IX Item "key"
1768 The string index to a \fBhash\fR, used to look up the \fBvalue\fR
1769 associated with that key.
1770 .IX Xref "keys, defined"
1771 .IP keyword 4
1772 .IX Item "keyword"
1773 See \fBreserved words\fR.
1774 .SS L
1775 .IX Subsection "L"
1776 .IP label 4
1777 .IX Item "label"
1778 A name you give to a \fBstatement\fR so that you can talk
1779 about that statement elsewhere in the program.
1780 .IX Xref "labels, defined"
1781 .IP laziness 4
1782 .IX Item "laziness"
1783 The quality that makes you go to great effort to reduce
1784 overall energy expenditure. It makes you write labor\-saving programs that
1785 other people will find useful, and then document what you wrote so you
1786 don’t have to answer so many questions about it. Hence, the first great
1787 virtue of a programmer. Also hence, this book. See also \fBimpatience\fR and
1788 \&\fBhubris\fR.
1789 .IX Xref "laziness quality"
1790 .IP "leftmost longest" 4
1791 .IX Item "leftmost longest"
1792 The preference of the \fBregular expression\fR engine to match the
1793 leftmost occurrence of a \fBpattern\fR, then given a position at which a match
1794 will occur, the preference for the longest match (presuming the use of a
1795 \&\fBgreedy\fR quantifier). See Camel chapter 5, “Pattern Matching” for \fImuch\fR
1796 more on this subject.
1797 .IX Xref "leftmost longest preference regular expressions, leftmost longest preference"
1798 .IP "left shift" 4
1799 .IX Item "left shift"
1800 A \fBbit shift\fR that multiplies the
1801 number by some power of 2.
1802 .IX Xref "left shift (<<) bit operator bit–shift operators, left shift << (left shift) bit operator"
1803 .IP lexeme 4
1804 .IX Item "lexeme"
1805 Fancy term for a \fBtoken\fR.
1806 .IX Xref "lexeme (token)"
1807 .IP lexer 4
1808 .IX Item "lexer"
1809 Fancy term for a \fBtokener\fR.
1810 .IX Xref "lexer (tokener)"
1811 .IP "lexical analysis" 4
1812 .IX Item "lexical analysis"
1813 Fancy term for \fBtokenizing\fR.
1814 .IX Xref "lexical analysis"
1815 .IP "lexical scoping" 4
1816 .IX Item "lexical scoping"
1817 Looking at your \fIOxford English
1818 Dictionary\fR through a microscope. (Also known as \fBstatic scoping\fR, because
1819 dictionaries don’t change very fast.) Similarly, looking at variables
1820 stored in a private dictionary (namespace) for each scope, which are
1821 visible only from their point of declaration down to the end of the lexical scope in which they are declared. —Syn.
1822 \&\fBstatic scoping\fR. —Ant. \fBdynamic scoping\fR.
1823 .IX Xref "lexical scopes, defined scopes static scopes scopes, static"
1824 .IP "lexical variable" 4
1825 .IX Item "lexical variable"
1826 A \fBvariable\fR subject to
1827 \&\fBlexical scoping\fR, declared by \f(CW\*(C`my\*(C'\fR. Often just called a “lexical”. (The
1828 \&\f(CW\*(C`our\*(C'\fR declaration declares a lexically scoped name for a global variable,
1829 which is not itself a lexical variable.)
1830 .IX Xref "lexical variables, about variables, lexical"
1831 .IP library 4
1832 .IX Item "library"
1833 Generally, a collection of procedures. In ancient
1834 days, referred to a collection of subroutines in a \fI.pl\fR file. In modern
1835 times, refers more often to the entire collection of Perl \fBmodules\fR on
1836 your system.
1837 .IX Xref "libraries, defined"
1838 .IP LIFO 4
1839 .IX Item "LIFO"
1840 Last In, First Out. See also \fBFIFO\fR. A LIFO is usually called a
1841 \&\fBstack\fR.
1842 .IX Xref "Last In, First Out (LIFO) LIFO (Last In, First Out) stacks, defined"
1843 .IP line 4
1844 .IX Item "line"
1845 In Unix, a sequence of zero or more nonnewline characters
1846 terminated with a \fBnewline\fR character. On non\-Unix machines, this is
1847 emulated by the C library even if the underlying \fBoperating system\fR has
1848 different ideas.
1849 .IX Xref "line (term)"
1850 .IP linebreak 4
1851 .IX Item "linebreak"
1852 A \fBgrapheme\fR consisting of either a carriage return followed
1853 by a line feed or any character with the Unicode Vertical Space \fBcharacter
1854 property\fR.
1855 .IX Xref "linebreaks"
1856 .IP "line buffering" 4
1857 .IX Item "line buffering"
1858 Used by a \fBstandard I/O\fR output stream that
1859 flushes its \fBbuffer\fR after every \fBnewline\fR. Many standard I/O libraries
1860 automatically set up line buffering on output that is going to the terminal.
1861 .IX Xref "line buffering buffering, line"
1862 .IP "line number" 4
1863 .IX Item "line number"
1864 The number of lines read previous to this one, plus 1. Perl
1865 keeps a separate line number for each source or input file it opens. The
1866 current source file’s line number is represented by \f(CW\*(C`_\|_LINE_\|_\*(C'\fR. The
1867 current input line number (for the file that was most recently read via
1868 \&\f(CW\*(C`<FH>\*(C'\fR) is represented by the \f(CW$.\fR (\f(CW$INPUT_LINE_NUMBER\fR)
1869 variable. Many error messages report both values, if available.
1870 .IX Xref "line number"
1871 .IP link 4
1872 .IX Item "link"
1873 Used as a noun, a name in a \fBdirectory\fR that represents a
1874 \&\fBfile\fR. A given file can have multiple links to it. It’s like having the
1875 same phone number listed in the phone directory under different names. As a
1876 verb, to resolve a partially \fBcompiled\fR file’s unresolved symbols into a
1877 (nearly) executable image. Linking can generally be static or dynamic,
1878 which has nothing to do with static or dynamic scoping.
1879 .IX Xref "links, defined"
1880 .IP LIST 4
1881 .IX Item "LIST"
1882 A syntactic construct representing a
1883 comma\- separated list of expressions, evaluated to produce a \fBlist value\fR.
1884 Each \fBexpression\fR in a \fR\f(CI\*(C`LIST\*(C'\fR\fI\fR is evaluated in \fBlist context\fR and
1885 interpolated into the list value.
1886 .IX Xref "LIST construct constructs, LIST"
1887 .IP list 4
1888 .IX Item "list"
1889 An ordered set of scalar values.
1890 .IX Xref "lists, defined"
1891 .IP "list context" 4
1892 .IX Item "list context"
1893 The situation in which an \fBexpression\fR is
1894 expected by its surroundings (the code calling it) to return a list of
1895 values rather than a single value. Functions that want a \fR\f(CI\*(C`LIST\*(C'\fR\fI\fR of
1896 arguments tell those arguments that they should produce a list value. See
1897 also \fBcontext\fR.
1898 .IX Xref "list context context, list"
1899 .IP "list operator" 4
1900 .IX Item "list operator"
1901 An \fBoperator\fR that does something with a list of
1902 values, such as \f(CW\*(C`join\*(C'\fR or \f(CW\*(C`grep\*(C'\fR. Usually used for named built\-in
1903 operators (such as \f(CW\*(C`print\*(C'\fR, \f(CW\*(C`unlink\*(C'\fR, and \f(CW\*(C`system\*(C'\fR) that do not require
1904 parentheses around their \fBargument\fR list.
1905 .IX Xref "list operators, about"
1906 .IP "list value" 4
1907 .IX Item "list value"
1908 An unnamed list of temporary scalar
1909 values that may be passed around within a program from any list\-generating
1910 function to any function or construct that provides a \fBlist context\fR.
1911 .IX Xref "list values, about values, list"
1912 .IP literal 4
1913 .IX Item "literal"
1914 A token in a programming language, such as a number or
1915 \&\fBstring\fR, that gives you an actual \fBvalue\fR instead of merely representing
1916 possible values as a \fBvariable\fR does.
1917 .IX Xref "literals, defined"
1918 .IP little\-endian 4
1919 .IX Item "little-endian"
1920 From Swift: someone
1921 who eats eggs little end first. Also used of computers that store the least
1922 significant \fBbyte\fR of a word at a lower byte address than the most
1923 significant byte. Often considered superior to big\-endian machines. See
1924 also \fBbig\-endian\fR.
1925 .IX Xref "little–endian, defined endianness, little–endian"
1926 .IP local 4
1927 .IX Item "local"
1928 Not meaning the same thing everywhere. A global
1929 variable in Perl can be localized inside a \fBdynamic scope\fR via the
1930 \&\f(CW\*(C`local\*(C'\fR operator.
1931 .IX Xref "local operator, about"
1932 .IP "logical operator" 4
1933 .IX Item "logical operator"
1934 Symbols representing the concepts “and”, “or”,
1935 “xor”, and “not”.
1936 .IX Xref "logical operators, about"
1937 .IP lookahead 4
1938 .IX Item "lookahead"
1939 An \fBassertion\fR that peeks at the string to the right of the current match location.
1940 .IX Xref "lookahead assertions assertions (in regexes), lookahead"
1941 .IP lookbehind 4
1942 .IX Item "lookbehind"
1943 An \fBassertion\fR that peeks at the string to the left of the current match
1944 location.
1945 .IX Xref "lookbehind assertions assertions (in regexes), lookbehind"
1946 .IP loop 4
1947 .IX Item "loop"
1948 A construct that
1949 performs something repeatedly, like a roller coaster.
1950 .IX Xref "loop constructs and statements, about constructs, loop"
1951 .IP "loop control statement" 4
1952 .IX Item "loop control statement"
1953 Any statement within the body of a loop that can
1954 make a loop prematurely stop looping or skip an \fBiteration\fR. Generally,
1955 you shouldn’t try this on roller coasters.
1956 .IX Xref "statements, loop control"
1957 .IP "loop label" 4
1958 .IX Item "loop label"
1959 A kind of key or name attached to a loop (or
1960 roller coaster) so that loop control statements can talk about which loop
1961 they want to control.
1962 .IX Xref "loop labels labels, loop"
1963 .IP lowercase 4
1964 .IX Item "lowercase"
1965 In Unicode, not just
1966 characters with the General Category of Lowercase Letter, but any character
1967 with the Lowercase property, including Modifier Letters, Letter Numbers,
1968 some Other Symbols, and one Combining Mark.
1969 .IX Xref "lowercase characters characters, lowercase"
1970 .IP lvaluable 4
1971 .IX Item "lvaluable"
1972 Able to serve as an \fBlvalue\fR.
1973 .IX Xref "lvaluable function functions, lvaluable"
1974 .IP lvalue 4
1975 .IX Item "lvalue"
1976 Term used by language lawyers for a
1977 storage location you can assign a new \fBvalue\fR to, such as a \fBvariable\fR or
1978 an element of an \fBarray\fR. The “l” is short for “left”, as in the left side
1979 of an assignment, a typical place for lvalues. An \fBlvaluable\fR function or
1980 expression is one to which a value may be assigned, as in \f(CW\*(C`pos($x) = 10\*(C'\fR.
1981 .IX Xref "lvalue (term) values, lvalue"
1982 .IP "lvalue modifier" 4
1983 .IX Item "lvalue modifier"
1984 An adjectival pseudofunction that
1985 warps the meaning of an \fBlvalue\fR in some declarative fashion. Currently
1986 there are three lvalue modifiers: \f(CW\*(C`my\*(C'\fR, \f(CW\*(C`our\*(C'\fR, and \f(CW\*(C`local\*(C'\fR.
1987 .IX Xref "lvalue modifier modifiers, lvalue"
1988 .SS M
1989 .IX Subsection "M"
1990 .IP magic 4
1991 .IX Item "magic"
1992 Technically speaking, any extra semantics attached to a
1993 variable such as \f(CW$!\fR, \f(CW$0\fR, \f(CW%ENV\fR, or \f(CW%SIG\fR, or to any tied
1994 variable. Magical things happen when you diddle those variables.
1995 .IX Xref "magic (term)"
1996 .IP "magical increment" 4
1997 .IX Item "magical increment"
1998 An \fBincrement\fR operator that knows how to
1999 bump up ASCII alphabetics as well as numbers.
2000 .IX Xref "magical increment operator"
2001 .IP "magical variables" 4
2002 .IX Item "magical variables"
2003 Special variables that have side
2004 effects when you access them or assign to them. For example, in Perl,
2005 changing elements of the \f(CW%ENV\fR array also changes the corresponding
2006 environment variables that subprocesses will use. Reading the \f(CW$!\fR
2007 variable gives you the current system error number or message.
2008 .IX Xref "magical variables variables, magical"
2009 .IP Makefile 4
2010 .IX Item "Makefile"
2011 A file that controls the compilation of a program. Perl programs
2012 don’t usually need a \fBMakefile\fR because the Perl compiler has plenty of
2013 self\-control.
2014 .IX Xref "Makefile"
2015 .IP man 4
2016 .IX Item "man"
2017 The Unix program that displays online documentation
2018 (manual pages) for you.
2019 .IX Xref "man program (Unix)"
2020 .IP manpage 4
2021 .IX Item "manpage"
2022 A “page” from the manuals, typically accessed via the
2023 \&\fIman\fR(1) command. A manpage contains a SYNOPSIS, a DESCRIPTION, a list of
2024 BUGS, and so on, and is typically longer than a page. There are manpages
2025 documenting \fBcommands\fR, \fBsyscalls\fR, \fBlibrary\fR \fBfunctions\fR, \fBdevices\fR,
2026 \&\fBprotocols\fR, \fBfiles\fR, and such. In this book, we call any piece of
2027 standard Perl documentation (like perlop or perldelta) a manpage, no
2028 matter what format it’s installed in on your system.
2029 .IX Xref "manpages, defined"
2030 .IP matching 4
2031 .IX Item "matching"
2032 See \fBpattern matching\fR.
2033 .IX Xref "matching"
2034 .IP "member data" 4
2035 .IX Item "member data"
2036 See \fBinstance variable\fR.
2037 .IX Xref "member data"
2038 .IP memory 4
2039 .IX Item "memory"
2040 This always means your main memory, not your disk.
2041 Clouding the issue is the fact that your machine may implement
2042 \&\fBvirtual\fR memory; that is, it will pretend that it has more memory than
2043 it really does, and it’ll use disk space to hold inactive bits. This can
2044 make it seem like you have a little more memory than you really do, but
2045 it’s not a substitute for real memory. The best thing that can be said
2046 about virtual memory is that it lets your performance degrade gradually
2047 rather than suddenly when you run out of real memory. But your program
2048 can die when you run out of virtual memory, too—if you haven’t thrashed
2049 your disk to death first.
2050 .IX Xref "memory, defined"
2051 .IP metacharacter 4
2052 .IX Item "metacharacter"
2053 A \fBcharacter\fR that is \fInot\fR supposed to be treated normally. Which characters
2054 are to be treated specially as metacharacters varies greatly from context to
2055 context. Your \fBshell\fR will have certain metacharacters, double\-quoted Perl
2056 \&\fBstrings\fR have other metacharacters,
2057 and \fBregular expression\fR patterns have all the double\-quote metacharacters plus
2058 some extra ones of their own.
2059 .IX Xref "metacharacters, about characters, regex metacharacters regular expressions, metacharacters and"
2060 .IP metasymbol 4
2061 .IX Item "metasymbol"
2062 Something we’d call a
2063 \&\fBmetacharacter\fR except that it’s a sequence of more than one character.
2064 Generally, the first character in the sequence must be a true metacharacter
2065 to get the other characters in the metasymbol to misbehave along with it.
2066 .IX Xref "metasymbols, about escape sequences"
2067 .IP method 4
2068 .IX Item "method"
2069 A kind of action that an \fBobject\fR can take if you tell
2070 it to. See Camel chapter 12, “Objects”.
2071 .IX Xref "methods, defined"
2072 .IP "method resolution order" 4
2073 .IX Item "method resolution order"
2074 The path Perl takes through \f(CW@INC\fR. By default, this is a double depth first
2075 search, once looking for defined methods and once for \f(CW\*(C`AUTOLOAD\*(C'\fR. However,
2076 Perl lets you configure this with \f(CW\*(C`mro\*(C'\fR.
2077 .IX Xref "method resolution order (mro) mro (method resolution order)"
2078 .IP minicpan 4
2079 .IX Item "minicpan"
2080 A CPAN mirror that includes just the latest versions for each
2081 distribution, probably created with \f(CW\*(C`CPAN::Mini\*(C'\fR. See
2082 Camel chapter 19, “CPAN”.
2083 .IX Xref "minicpan, defined CPAN (Comprehensive Perl Archive Network), minicpan and CPAN::Mini module"
2084 .IP minimalism 4
2085 .IX Item "minimalism"
2086 The belief that “small is beautiful”. Paradoxically, if you
2087 say something in a small language, it turns out big, and if you say it in a
2088 big language, it turns out small. Go figure.
2089 .IX Xref "minimalism"
2090 .IP mode 4
2091 .IX Item "mode"
2092 In the context of the \fIstat\fR(2) syscall, refers to the field
2093 holding the \fBpermission bits\fR and the type of the \fBfile\fR.
2094 .IX Xref "mode"
2095 .IP modifier 4
2096 .IX Item "modifier"
2097 See \fBstatement modifier\fR, \fBregular expression\fR, and
2098 \&\fBlvalue\fR, not necessarily in that order.
2099 .IX Xref "modifiers, defined"
2100 .IP module 4
2101 .IX Item "module"
2102 A \fBfile\fR that defines a \fBpackage\fR of (almost) the same
2103 name, which can either \fBexport\fR symbols or function as an \fBobject\fR class.
2104 (A module’s main \fI.pm\fR file may also load in other files in support of the
2105 module.) See the \f(CW\*(C`use\*(C'\fR built\-in.
2106 .IX Xref "modules, defined"
2107 .IP modulus 4
2108 .IX Item "modulus"
2109 An integer divisor when
2110 you’re interested in the remainder instead of the quotient.
2111 .IX Xref "modulus (%) operator % (modulus) operator"
2112 .IP mojibake 4
2113 .IX Item "mojibake"
2114 When you speak one language and the computer thinks you’re
2115 speaking another. You’ll see odd translations when you send UTF‑8, for
2116 instance, but the computer thinks you sent Latin\-1, showing all sorts of
2117 weird characters instead. The term is written 「文字化け」in Japanese and
2118 means “character rot”, an apt description. Pronounced [\f(CW\*(C`modʑibake\*(C'\fR] in
2119 standard \fBIPA\fR phonetics, or approximately “moh\-jee\-bah\-keh”.
2120 .IX Xref "mojibake"
2121 .IP monger 4
2122 .IX Item "monger"
2123 Short for one member of \fBPerl mongers\fR, a
2124 purveyor of Perl.
2125 .IX Xref "mongers, Perl Perl mongers"
2126 .IP mortal 4
2127 .IX Item "mortal"
2128 A temporary value scheduled to die when the
2129 current statement finishes.
2130 .IX Xref "mortal value values, mortal"
2131 .IP mro 4
2132 .IX Item "mro"
2133 See \fBmethod resolution order\fR.
2134 .IP "multidimensional array" 4
2135 .IX Item "multidimensional array"
2136 An array with multiple
2137 subscripts for finding a single element. Perl implements these using
2138 \&\fBreferences\fR—see Camel chapter 9, “Data Structures”.
2139 .IX Xref "multidimensional arrays arrays, multidimensional"
2140 .IP "multiple inheritance" 4
2141 .IX Item "multiple inheritance"
2142 The features you got from
2143 your mother and father, mixed together unpredictably. (See also
2144 \&\fBinheritance\fR and \fBsingle inheritance\fR.) In computer languages (including
2145 Perl), it is the notion that a given class may have multiple direct
2146 ancestors or \fBbase classes\fR.
2147 .IX Xref "multiple inheritance inheritance, multiple"
2148 .SS N
2149 .IX Subsection "N"
2150 .IP "named pipe" 4
2151 .IX Item "named pipe"
2152 A \fBpipe\fR with a name embedded in the
2153 \&\fBfilesystem\fR so that it can be accessed by two unrelated \fBprocesses\fR.
2154 .IX Xref "named pipes pipes, names"
2155 .IP namespace 4
2156 .IX Item "namespace"
2157 A domain of names. You needn’t worry about whether the
2158 names in one such domain have been used in another. See \fBpackage\fR.
2159 .IX Xref "namespaces, about"
2160 .IP NaN 4
2161 .IX Item "NaN"
2162 Not a number. The value Perl uses
2163 for certain invalid or inexpressible floating\-point operations.
2164 .IX Xref "NaN (not a number) not a number (NaN)"
2165 .IP "network address" 4
2166 .IX Item "network address"
2167 The most important attribute of a socket, like your
2168 telephone’s telephone number. Typically an IP address. See also \fBport\fR.
2169 .IX Xref "network address"
2170 .IP newline 4
2171 .IX Item "newline"
2172 A single character that
2173 represents the end of a line, with the ASCII value of 012 octal under Unix
2174 (but 015 on a Mac), and represented by \f(CW\*(C`\en\*(C'\fR in Perl strings. For Windows
2175 machines writing text files, and for certain physical devices like
2176 terminals, the single newline gets automatically translated by your C
2177 library into a line feed and a carriage return, but normally, no
2178 translation is done.
2179 .IX Xref "newline character characters, newline"
2180 .IP NFS 4
2181 .IX Item "NFS"
2182 Network File System, which allows you to mount a remote filesystem as if it were local.
2183 .IX Xref "NFS (Network File System) Network File System (NFS)"
2184 .IP normalization 4
2185 .IX Item "normalization"
2186 Converting a text string into an alternate but equivalent
2187 \&\fBcanonical\fR (or compatible) representation that can then be compared for
2188 equivalence. Unicode recognizes four different normalization forms: NFD,
2189 NFC, NFKD, and NFKC.
2190 .IX Xref "normalization"
2191 .IP "null character" 4
2192 .IX Item "null character"
2193 A character with the numeric value of
2194 zero. It’s used by C to terminate strings, but Perl allows strings to
2195 contain a null.
2196 .IX Xref "null character characters, null"
2197 .IP "null list" 4
2198 .IX Item "null list"
2199 A \fBlist value\fR with zero elements, represented
2200 in Perl by \f(CW\*(C`()\*(C'\fR.
2201 .IX Xref "null lists lists, null"
2202 .IP "null string" 4
2203 .IX Item "null string"
2204 A \fBstring\fR containing no characters, not to
2205 be confused with a string containing a \fBnull character\fR, which has a
2206 positive length and is \fBtrue\fR.
2207 .IX Xref "null strings strings, null"
2208 .IP "numeric context" 4
2209 .IX Item "numeric context"
2210 The situation in which an expression
2211 is expected by its surroundings (the code calling it) to return a number.
2212 See also \fBcontext\fR and \fBstring context\fR.
2213 .IX Xref "numeric context context, numeric"
2214 .IP numification 4
2215 .IX Item "numification"
2216 (Sometimes spelled \fInummification\fR and \fInummify\fR.) Perl lingo
2217 for implicit conversion into a number; the related verb is \fInumify\fR.
2218 \&\fINumification\fR is intended to rhyme with \fImummification\fR, and \fInumify\fR with
2219 \&\fImummify\fR. It is unrelated to English \fInumen\fR, \fInumina\fR, \fInuminous\fR. We
2220 originally forgot the extra \fIm\fR a long time ago, and some people got used to
2221 our funny spelling, and so just as with \f(CW\*(C`HTTP_REFERER\*(C'\fR’s own missing letter,
2222 our weird spelling has stuck around.
2223 .IX Xref "numification"
2224 .IP NV 4
2225 .IX Item "NV"
2226 Short for Nevada, no part of
2227 which will ever be confused with civilization. NV also means an internal
2228 floating\- point Numeric Value of the type a \fBscalar\fR can hold, not to be
2229 confused with an \fBIV\fR.
2230 .IX Xref "Numeric Value (NV) NV (Numeric Value)"
2231 .IP nybble 4
2232 .IX Item "nybble"
2233 Half a \fBbyte\fR, equivalent to one \fBhexadecimal\fR digit, and worth
2234 four \fBbits\fR.
2235 .IX Xref "nybble"
2236 .SS O
2237 .IX Subsection "O"
2238 .IP object 4
2239 .IX Item "object"
2240 An \fBinstance\fR of a \fBclass\fR. Something that “knows”
2241 what user\-defined type (class) it is, and what it can do because of what
2242 class it is. Your program can request an object to do things, but the
2243 object gets to decide whether it wants to do them or not. Some objects are
2244 more accommodating than others.
2245 .IX Xref "objects, defined"
2246 .IP octal 4
2247 .IX Item "octal"
2248 A number in base 8. Only the digits 0 through 7 are allowed. Octal
2249 constants in Perl start with 0, as in 013. See also the \f(CW\*(C`oct\*(C'\fR function.
2250 .IX Xref "octals"
2251 .IP offset 4
2252 .IX Item "offset"
2253 How many things you have to skip
2254 over when moving from the beginning of a string or array to a specific
2255 position within it. Thus, the minimum offset is zero, not one, because you
2256 don’t skip anything to get to the first item.
2257 .IX Xref "offsets in strings strings, offsets in"
2258 .IP one\-liner 4
2259 .IX Item "one-liner"
2260 An entire computer program crammed into one line of
2261 text.
2262 .IX Xref "one–liner programs"
2263 .IP "open source software" 4
2264 .IX Item "open source software"
2265 Programs for which the source code is freely
2266 available and freely redistributable, with no commercial strings attached.
2267 For a more detailed definition, see <http://www.opensource.org/osd.html>.
2268 .IX Xref "open source software"
2269 .IP operand 4
2270 .IX Item "operand"
2271 An \fBexpression\fR that yields a \fBvalue\fR that an
2272 \&\fBoperator\fR operates on. See also \fBprecedence\fR.
2273 .IX Xref "operands (term)"
2274 .IP "operating system" 4
2275 .IX Item "operating system"
2276 A special program that runs on the bare
2277 machine and hides the gory details of managing \fBprocesses\fR and \fBdevices\fR.
2278 Usually used in a looser sense to indicate a particular culture of
2279 programming. The loose sense can be used at varying levels of specificity.
2280 At one extreme, you might say that all versions of Unix and Unix\-lookalikes
2281 are the same operating system (upsetting many people, especially lawyers
2282 and other advocates). At the other extreme, you could say this particular
2283 version of this particular vendor’s operating system is different from any
2284 other version of this or any other vendor’s operating system. Perl is much
2285 more portable across operating systems than many other languages. See also
2286 \&\fBarchitecture\fR and \fBplatform\fR.
2287 .IX Xref "operating systems, defined"
2288 .IP operator 4
2289 .IX Item "operator"
2290 A gizmo that transforms some number of input values to
2291 some number of output values, often built into a language with a special
2292 syntax or symbol. A given operator may have specific expectations about
2293 what \fBtypes\fR of data you give as its arguments (\fBoperands\fR) and what type
2294 of data you want back from it.
2295 .IX Xref "operators, about"
2296 .IP "operator overloading" 4
2297 .IX Item "operator overloading"
2298 A kind of
2299 \&\fBoverloading\fR that you can do on built\-in \fBoperators\fR to make them work
2300 on \fBobjects\fR as if the objects were ordinary scalar values, but with the
2301 actual semantics supplied by the object class. This is set up with the
2302 overload \fBpragma\fR—see Camel chapter 13, “Overloading”.
2303 .IX Xref "operator overloading, about overloading, operator"
2304 .IP options 4
2305 .IX Item "options"
2306 See either \fBswitches\fR or \fBregular expression modifiers\fR.
2307 .IX Xref "options"
2308 .IP ordinal 4
2309 .IX Item "ordinal"
2310 An abstract character’s integer value. Same thing as
2311 \&\fBcodepoint\fR.
2312 .IX Xref "ordinals (term)"
2313 .IP overloading 4
2314 .IX Item "overloading"
2315 Giving additional meanings to a symbol or construct.
2316 Actually, all languages do overloading to one extent or another, since
2317 people are good at figuring out things from \fBcontext\fR.
2318 .IX Xref "overloading, defined"
2319 .IP overriding 4
2320 .IX Item "overriding"
2321 Hiding or invalidating some other definition of the
2322 same name. (Not to be confused with \fBoverloading\fR, which adds definitions
2323 that must be disambiguated some other way.) To confuse the issue further,
2324 we use the word with two overloaded definitions: to describe how you can
2325 define your own \fBsubroutine\fR to hide a built\-in \fBfunction\fR of the same
2326 name (see the section “Overriding Built\-in Functions” in Camel chapter 11,
2327 “Modules”), and to describe how you can define a replacement \fBmethod\fR in a
2328 \&\fBderived class\fR to hide a \fBbase class\fR’s method of the same name (see
2329 Camel chapter 12, “Objects”).
2330 .IX Xref "overriding, defined"
2331 .IP owner 4
2332 .IX Item "owner"
2333 The one user (apart from the
2334 superuser) who has absolute control over a \fBfile\fR. A file may also have a
2335 \&\fBgroup\fR of users who may exercise joint ownership if the real owner
2336 permits it. See \fBpermission bits\fR.
2337 .IX Xref "ownership, file files, ownership of"
2338 .SS P
2339 .IX Subsection "P"
2340 .IP package 4
2341 .IX Item "package"
2342 A \fBnamespace\fR for global \fBvariables\fR, \fBsubroutines\fR,
2343 and the like, such that they can be kept separate from like\-named
2344 \&\fBsymbols\fR in other namespaces. In a sense, only the package is global,
2345 since the symbols in the package’s symbol table are only accessible from
2346 code \fBcompiled\fR outside the package by naming the package. But in another
2347 sense, all package symbols are also globals—they’re just well\-organized
2348 globals.
2349 .IX Xref "packages, defined"
2350 .IP pad 4
2351 .IX Item "pad"
2352 Short for \fBscratchpad\fR.
2353 .IX Xref "pads (scratchpads)"
2354 .IP parameter 4
2355 .IX Item "parameter"
2356 See \fBargument\fR.
2357 .IX Xref "parameters"
2358 .IP "parent class" 4
2359 .IX Item "parent class"
2360 See \fBbase class\fR.
2361 .IX Xref "parent classes classes, parent"
2362 .IP "parse tree" 4
2363 .IX Item "parse tree"
2364 See \fBsyntax tree\fR.
2365 .IX Xref "parse tree"
2366 .IP parsing 4
2367 .IX Item "parsing"
2368 The subtle but sometimes brutal art of attempting to turn
2369 your possibly malformed program into a valid \fBsyntax tree\fR.
2370 .IX Xref "parsing, about"
2371 .IP patch 4
2372 .IX Item "patch"
2373 To fix by applying one, as it were. In the realm of hackerdom, a
2374 listing of the differences between two versions of a program as might be
2375 applied by the \fBpatch\fR(1) program when you want to fix a bug or upgrade
2376 your old version.
2377 .IX Xref "patches"
2378 .IP PATH 4
2379 .IX Item "PATH"
2380 The list of
2381 \&\fBdirectories\fR the system searches to find a program you want to
2382 \&\fBexecute\fR. The list is stored as one of your \fBenvironment variables\fR,
2383 accessible in Perl as \f(CW$ENV{PATH}\fR.
2384 .IX Xref "PATH environment variable variables, environment"
2385 .IP pathname 4
2386 .IX Item "pathname"
2387 A fully qualified filename such as \fI/usr/bin/perl\fR. Sometimes
2388 confused with \f(CW\*(C`PATH\*(C'\fR.
2389 .IX Xref "pathname"
2390 .IP pattern 4
2391 .IX Item "pattern"
2392 A template used in \fBpattern matching\fR.
2393 .IX Xref "patterns, defined"
2394 .IP "pattern matching" 4
2395 .IX Item "pattern matching"
2396 Taking a pattern, usually a \fBregular
2397 expression\fR, and trying the pattern various ways on a string to see whether
2398 there’s any way to make it fit. Often used to pick interesting tidbits out
2399 of a file.
2400 .IX Xref "pattern matching, about"
2401 .IP PAUSE 4
2402 .IX Item "PAUSE"
2403 The Perl Authors Upload SErver (<http://pause.perl.org>), the gateway
2404 for \fBmodules\fR on their way to \fBCPAN\fR.
2405 .IX Xref "Perl Authors Upload SErver (PAUSE) PAUSE (Perl Authors Upload SErver)"
2406 .IP "Perl mongers" 4
2407 .IX Item "Perl mongers"
2408 A Perl user group, taking the form of its
2409 name from the New York Perl mongers, the first Perl user group. Find one
2410 near you at <http://www.pm.org>.
2411 .IX Xref "Perl mongers mongers, Perl"
2412 .IP "permission bits" 4
2413 .IX Item "permission bits"
2414 Bits that the \fBowner\fR of a file sets
2415 or unsets to allow or disallow access to other people. These flag bits are
2416 part of the \fBmode\fR word returned by the \f(CW\*(C`stat\*(C'\fR built\-in when you ask
2417 about a file. On Unix systems, you can check the \fIls\fR(1) manpage for more
2418 information.
2419 .IX Xref "permission bits bits, permission"
2420 .IP Pern 4
2421 .IX Item "Pern"
2422 What you get when you do \f(CW\*(C`Perl++\*(C'\fR twice. Doing it only once
2423 will curl your hair. You have to increment it eight times to shampoo your
2424 hair. Lather, rinse, iterate.
2425 .IX Xref "Pern (term)"
2426 .IP phaser 4
2427 .IX Item "phaser"
2428 The lifetime (execution timeline) of a program is broken up into phases. A
2429 phaser is a block of code called during a specific execution phase.
2430 .IP pipe 4
2431 .IX Item "pipe"
2432 A direct \fBconnection\fR that carries the output of one
2433 \&\fBprocess\fR to the input of another without an intermediate temporary file.
2434 Once the pipe is set up, the two processes in question can read and write
2435 as if they were talking to a normal file, with some caveats.
2436 .IX Xref "pipes, defined"
2437 .IP pipeline 4
2438 .IX Item "pipeline"
2439 A series of \fBprocesses\fR all in a row, linked by \fBpipes\fR, where
2440 each passes its output stream to the next.
2441 .IX Xref "pipeline"
2442 .IP platform 4
2443 .IX Item "platform"
2444 The entire hardware and software context in which a
2445 program runs. A program written in a platform\-dependent language might
2446 break if you change any of the following: machine, operating system,
2447 libraries, compiler, or system configuration. The \fIperl\fR interpreter has
2448 to be \fBcompiled\fR differently for each platform because it is implemented
2449 in C, but programs written in the Perl language are largely platform
2450 independent.
2451 .IX Xref "platforms, defined"
2452 .IP pod 4
2453 .IX Item "pod"
2454 The markup
2455 used to embed documentation into your Perl code. Pod stands for “Plain old
2456 documentation”. See Camel chapter 23, “Plain Old Documentation”.
2457 .IX Xref "pod (plain old documentation), about plain old documentation"
2458 .IP "pod command" 4
2459 .IX Item "pod command"
2460 A sequence, such as \f(CW\*(C`=head1\*(C'\fR, that denotes
2461 the start of a \fBpod\fR section.
2462 .IX Xref "pod commands commands, pod"
2463 .IP pointer 4
2464 .IX Item "pointer"
2465 A \fBvariable\fR in a language like C that contains the exact
2466 memory location of some other item. Perl handles pointers internally so you
2467 don’t have to worry about them. Instead, you just use symbolic pointers in
2468 the form of \fBkeys\fR and \fBvariable\fR names, or \fBhard references\fR, which
2469 aren’t pointers (but act like pointers and do in fact contain pointers).
2470 .IX Xref "pointers"
2471 .IP polymorphism 4
2472 .IX Item "polymorphism"
2473 The notion that you can tell an \fBobject\fR to do something
2474 generic, and the object will interpret the command in different ways
2475 depending on its type. [< Greek πολυ\- + μορϕή, many forms.]
2476 .IX Xref "polymorphism"
2477 .IP port 4
2478 .IX Item "port"
2479 The part of the address of a TCP or UDP socket that directs
2480 packets to the correct process after finding the right machine, something
2481 like the phone extension you give when you reach the company operator. Also
2482 the result of converting code to run on a different platform than
2483 originally intended, or the verb denoting this conversion.
2484 .IX Xref "ports (term)"
2485 .IP portable 4
2486 .IX Item "portable"
2487 Once upon a time, C code compilable under both BSD and
2488 SysV. In general, code that can be easily converted to run on another
2489 \&\fBplatform\fR, where “easily” can be defined however you like, and usually
2490 is. Anything may be considered portable if you try hard enough, such as a
2491 mobile home or London Bridge.
2492 .IX Xref "portability, about"
2493 .IP porter 4
2494 .IX Item "porter"
2495 Someone who “carries” software from one \fBplatform\fR to another.
2496 Porting programs written in platform\-dependent languages such as C can be
2497 difficult work, but porting programs like Perl is very much worth the
2498 agony.
2499 .IX Xref "porters"
2500 .IP possessive 4
2501 .IX Item "possessive"
2502 Said of quantifiers and groups in patterns that refuse
2503 to give up anything once they’ve gotten their mitts on it. Catchier and
2504 easier to say than the even more formal \fInonbacktrackable\fR.
2505 .IX Xref "possessive (term)"
2506 .IP POSIX 4
2507 .IX Item "POSIX"
2508 The Portable Operating System Interface
2509 specification.
2510 .IX Xref "Portable Operating System Interface (POSIX), about POSIX (Portable Operating System Interface), about"
2511 .IP postfix 4
2512 .IX Item "postfix"
2513 An \fBoperator\fR that follows its \fBoperand\fR, as in
2514 \&\f(CW\*(C`$x++\*(C'\fR.
2515 .IX Xref "postfix operator"
2516 .IP pp 4
2517 .IX Item "pp"
2518 An internal shorthand for a
2519 “push\- pop” code; that is, C code implementing Perl’s stack machine.
2520 .IX Xref "pp (push–pop) code push–pop (pp) code"
2521 .IP pragma 4
2522 .IX Item "pragma"
2523 A standard module whose practical hints and
2524 suggestions are received (and possibly ignored) at compile time. Pragmas
2525 are named in all lowercase.
2526 .IX Xref "pragmas, about modules"
2527 .IP precedence 4
2528 .IX Item "precedence"
2529 The rules of
2530 conduct that, in the absence of other guidance, determine what should
2531 happen first. For example, in the absence of parentheses, you always do
2532 multiplication before addition.
2533 .IX Xref "precedence rules, about operators, precedence rules"
2534 .IP prefix 4
2535 .IX Item "prefix"
2536 An \fBoperator\fR that precedes its \fBoperand\fR, as in
2537 \&\f(CW\*(C`++$x\*(C'\fR.
2538 .IX Xref "prefix operators"
2539 .IP preprocessing 4
2540 .IX Item "preprocessing"
2541 What some helper \fBprocess\fR did to transform the incoming
2542 data into a form more suitable for the current process. Often done with an
2543 incoming \fBpipe\fR. See also \fBC preprocessor\fR.
2544 .IX Xref "preprocessing"
2545 .IP "primary maintainer" 4
2546 .IX Item "primary maintainer"
2547 The author that PAUSE allows to assign \fBco\-maintainer\fR
2548 permissions to a \fBnamespace\fR. A primary maintainer can give up this
2549 distinction by assigning it to another PAUSE author. See Camel chapter 19,
2550 “CPAN”.
2551 .IX Xref "primary maintainer"
2552 .IP procedure 4
2553 .IX Item "procedure"
2554 A \fBsubroutine\fR.
2555 .IX Xref "procedures, defined"
2556 .IP process 4
2557 .IX Item "process"
2558 An instance of a running program. Under multitasking
2559 systems like Unix, two or more separate processes could be running the same
2560 program independently at the same time—in fact, the \f(CW\*(C`fork\*(C'\fR function is
2561 designed to bring about this happy state of affairs. Under other operating
2562 systems, processes are sometimes called “threads”, “tasks”, or “jobs”,
2563 often with slight nuances in meaning.
2564 .IX Xref "processes, defined"
2565 .IP program 4
2566 .IX Item "program"
2567 See \fBscript\fR.
2568 .IP "program generator" 4
2569 .IX Item "program generator"
2570 A system that algorithmically writes code for you in a
2571 high\-level language. See also \fBcode generator\fR.
2572 .IX Xref "program generators"
2573 .IP "progressive matching" 4
2574 .IX Item "progressive matching"
2575 \&\fBPattern matching\fR matching>that picks up where it left off before.
2576 .IX Xref "progressive matching pattern matching, progressive matching"
2577 .IP property 4
2578 .IX Item "property"
2579 See either \fBinstance variable\fR or \fBcharacter property\fR.
2580 .IX Xref "property"
2581 .IP protocol 4
2582 .IX Item "protocol"
2583 In networking, an agreed\-upon way of sending messages
2584 back and forth so that neither correspondent will get too confused.
2585 .IX Xref "protocols (term)"
2586 .IP prototype 4
2587 .IX Item "prototype"
2588 An optional part of a \fBsubroutine\fR declaration telling
2589 the Perl compiler how many and what flavor of arguments may be passed as
2590 \&\fBactual arguments\fR, so you can write subroutine calls that parse much like
2591 built\-in functions. (Or don’t parse, as the case may be.)
2592 .IX Xref "prototypes, about"
2593 .IP pseudofunction 4
2594 .IX Item "pseudofunction"
2595 A construct that sometimes looks like a function but really
2596 isn’t. Usually reserved for \fBlvalue\fR modifiers like \f(CW\*(C`my\*(C'\fR, for \fBcontext\fR
2597 modifiers like \f(CW\*(C`scalar\*(C'\fR, and for the pick\-your\-own\-quotes constructs,
2598 \&\f(CW\*(C`q//\*(C'\fR, \f(CW\*(C`qq//\*(C'\fR, \f(CW\*(C`qx//\*(C'\fR, \f(CW\*(C`qw//\*(C'\fR, \f(CW\*(C`qr//\*(C'\fR, \f(CW\*(C`m//\*(C'\fR, \f(CW\*(C`s///\*(C'\fR, \f(CW\*(C`y///\*(C'\fR, and
2599 \&\f(CW\*(C`tr///\*(C'\fR.
2600 .IX Xref "pseudofunctions constructs, pseudofunctions functions, pseudofunctions"
2601 .IP pseudohash 4
2602 .IX Item "pseudohash"
2603 Formerly, a reference to an array
2604 whose initial element happens to hold a reference to a hash. You used to be
2605 able to treat a pseudohash reference as either an array reference or a hash
2606 reference. Pseudohashes are no longer supported.
2607 .IX Xref "pseudohashes hashes, pseudohashes"
2608 .IP pseudoliteral 4
2609 .IX Item "pseudoliteral"
2610 An \fBoperator\fR X\f(CW\*(C`that looks something like a \fR\f(CBliteral\fR\f(CW,
2611 such as the output\-grabbing operator, <literal
2612 moreinfo="none"\*(C'\fR\`>\fR\f(CI\*(C`command\*(C'\fR\fI\fR\f(CW\*(C`\`\*(C'\fR.
2613 .IX Xref "pseudoliterals"
2614 .IP "public domain" 4
2615 .IX Item "public domain"
2616 Something not owned by anybody. Perl is copyrighted and is
2617 thus \fInot\fR in the public domain—it’s just \fBfreely available\fR and \fBfreely
2618 redistributable\fR.
2619 .IX Xref "public domain"
2620 .IP pumpkin 4
2621 .IX Item "pumpkin"
2622 A notional “baton” handed around the Perl community
2623 indicating who is the lead integrator in some arena of development.
2624 .IX Xref "pumpkin (term)"
2625 .IP pumpking 4
2626 .IX Item "pumpking"
2627 A \fBpumpkin\fR holder, the person in charge of pumping the pump,
2628 or at least priming it. Must be willing to play the part of the Great
2629 Pumpkin now and then.
2630 .IX Xref "pumpking"
2631 .IP PV 4
2632 .IX Item "PV"
2633 A “pointer value”, which is Perl
2634 Internals Talk for a \f(CW\*(C`char*\*(C'\fR.
2635 .IX Xref "PV (pointer value) pointer value (PV)"
2636 .SS Q
2637 .IX Subsection "Q"
2638 .IP qualified 4
2639 .IX Item "qualified"
2640 Possessing a complete name. The symbol \f(CW$Ent::moot\fR is
2641 qualified; \f(CW$moot\fR is unqualified. A fully qualified filename is specified
2642 from the top\-level directory.
2643 .IX Xref "qualified (term)"
2644 .IP quantifier 4
2645 .IX Item "quantifier"
2646 A component of a \fBregular expression\fR specifying how
2647 many times the foregoing \fBatom\fR may occur.
2648 .IX Xref "quantifiers, about"
2649 .SS R
2650 .IX Subsection "R"
2651 .IP "race condition" 4
2652 .IX Item "race condition"
2653 A race condition exists when the result of
2654 several interrelated events depends on the ordering of those events, but
2655 that order cannot be guaranteed due to nondeterministic timing effects. If
2656 two or more programs, or parts of the same program, try to go through the
2657 same series of events, one might interrupt the work of the other. This is a
2658 good way to find an \fBexploit\fR.
2659 .IX Xref "race conditions, defined"
2660 .IP readable 4
2661 .IX Item "readable"
2662 With respect to files, one that has the proper permission
2663 bit set to let you access the file. With respect to computer programs, one
2664 that’s written well enough that someone has a chance of figuring out what
2665 it’s trying to do.
2666 .IX Xref "readable (term)"
2667 .IP reaping 4
2668 .IX Item "reaping"
2669 The last rites performed by a parent \fBprocess\fR
2670 on behalf of a deceased child process so that it doesn’t remain a
2671 \&\fBzombie\fR. See the \f(CW\*(C`wait\*(C'\fR and \f(CW\*(C`waitpid\*(C'\fR function calls.
2672 .IX Xref "reaping zombie processes"
2673 .IP record 4
2674 .IX Item "record"
2675 A set of related data values in a \fBfile\fR or \fBstream\fR,
2676 often associated with a unique \fBkey\fR field. In Unix, often commensurate
2677 with a \fBline\fR, or a blank\-line–terminated set of lines (a “paragraph”).
2678 Each line of the \fI/etc/passwd\fR file is a record, keyed on login name,
2679 containing information about that user.
2680 .IX Xref "records, defined"
2681 .IP recursion 4
2682 .IX Item "recursion"
2683 The art of defining something (at least partly) in
2684 terms of itself, which is a naughty no\-no in dictionaries but often works
2685 out okay in computer programs if you’re careful not to recurse forever
2686 (which is like an infinite loop with more spectacular failure modes).
2687 .IX Xref "recursion, defined"
2688 .IP reference 4
2689 .IX Item "reference"
2690 Where you look to find a pointer to information
2691 somewhere else. (See \fBindirection\fR.) References come in two flavors:
2692 \&\fBsymbolic references\fR and \fBhard references\fR.
2693 .IX Xref "references, about"
2694 .IP referent 4
2695 .IX Item "referent"
2696 Whatever a reference refers to, which may or may not
2697 have a name. Common types of referents include scalars, arrays, hashes, and
2698 subroutines.
2699 .IX Xref "referents, defined"
2700 .IP regex 4
2701 .IX Item "regex"
2702 See \fBregular expression\fR.
2703 .IP "regular expression" 4
2704 .IX Item "regular expression"
2705 A single entity with various
2706 interpretations, like an elephant. To a computer scientist, it’s a grammar
2707 for a little language in which some strings are legal and others aren’t. To
2708 normal people, it’s a pattern you can use to find what you’re looking for
2709 when it varies from case to case. Perl’s regular expressions are far from
2710 regular in the theoretical sense, but in regular use they work quite well.
2711 Here’s a regular expression: \f(CW\*(C`/Oh s.*t./\*(C'\fR. This will match strings like
2712 “\f(CW\*(C`Oh say can you see by the dawn\*(Aqs early light\*(C'\fR” and “\f(CW\*(C`Oh sit!\*(C'\fR”. See
2713 Camel chapter 5, “Pattern Matching”.
2714 .IX Xref "regular expressions, defined"
2715 .IP "regular expression modifier" 4
2716 .IX Item "regular expression modifier"
2717 An option on a pattern or substitution, such as \f(CW\*(C`/i\*(C'\fR to render the pattern
2718 case\- insensitive.
2719 .IX Xref "regular expression modifiers modifiers, regular expression"
2720 .IP "regular file" 4
2721 .IX Item "regular file"
2722 A \fBfile\fR that’s not a \fBdirectory\fR, a
2723 \&\fBdevice\fR, a named \fBpipe\fR or \fBsocket\fR, or a \fBsymbolic link\fR. Perl uses
2724 the \f(CW\*(C`–f\*(C'\fR file test operator to identify regular files. Sometimes called a
2725 “plain” file.
2726 .IX Xref "regular files files, regular"
2727 .IP "relational operator" 4
2728 .IX Item "relational operator"
2729 An \fBoperator\fR that says whether a particular
2730 ordering relationship is \fBtrue\fR about a pair of \fBoperands\fR. Perl has both
2731 numeric and string relational operators. See \fBcollating sequence\fR.
2732 .IX Xref "relational operators"
2733 .IP "reserved words" 4
2734 .IX Item "reserved words"
2735 A word with a specific, built\-in meaning
2736 to a \fBcompiler\fR, such as \f(CW\*(C`if\*(C'\fR or \f(CW\*(C`delete\*(C'\fR. In many languages (not Perl),
2737 it’s illegal to use reserved words to name anything else. (Which is why
2738 they’re reserved, after all.) In Perl, you just can’t use them to name
2739 \&\fBlabels\fR or \fBfilehandles\fR. Also called “keywords”.
2740 .IX Xref "reserved words keywords (term)"
2741 .IP "return value" 4
2742 .IX Item "return value"
2743 The \fBvalue\fR produced by a \fBsubroutine\fR
2744 or \fBexpression\fR when evaluated. In Perl, a return value may be either a
2745 \&\fBlist\fR or a \fBscalar\fR.
2746 .IX Xref "return values values, return"
2747 .IP RFC 4
2748 .IX Item "RFC"
2749 Request For Comment, which despite the timid connotations is the name of a series of
2750 important standards documents.
2751 .IX Xref "Request For Comment (RFC) RFC (Request For Comment)"
2752 .IP "right shift" 4
2753 .IX Item "right shift"
2754 A \fBbit shift\fR that divides
2755 a number by some power of 2.
2756 .IX Xref "right shift (>>) bit operator bit–shift operators, right shift >> (right shift) bit operator"
2757 .IP role 4
2758 .IX Item "role"
2759 A name for a concrete set of behaviors. A role is a way to
2760 add behavior to a class without inheritance.
2761 .IX Xref "roles (term)"
2762 .IP root 4
2763 .IX Item "root"
2764 The superuser (\f(CW\*(C`UID\*(C'\fR == 0). Also the top\-level directory of
2765 the filesystem.
2766 .IX Xref "root (term)"
2767 .IP RTFM 4
2768 .IX Item "RTFM"
2769 What you are told when someone thinks you should Read The
2770 Fine Manual.
2771 .IX Xref "RTFM acronym"
2772 .IP "run phase" 4
2773 .IX Item "run phase"
2774 Any time after Perl starts running your main program.
2775 See also \fBcompile phase\fR. Run phase is mostly spent in \fBruntime\fR but may
2776 also be spent in \fBcompile time\fR when \f(CW\*(C`require\*(C'\fR, \f(CW\*(C`do\*(C'\fR \fR\f(CI\*(C`FILE\*(C'\fR\fI\fR, or
2777 \&\f(CW\*(C`eval\*(C'\fR \fI\fR\f(CI\*(C`STRING\*(C'\fR\fI\fR operators are executed, or when a substitution uses
2778 the \f(CW\*(C`/ee\*(C'\fR modifier.
2779 .IX Xref "run phase, defined"
2780 .IP runtime 4
2781 .IX Item "runtime"
2782 The time when Perl is actually doing what your
2783 code says to do, as opposed to the earlier period of time when it was
2784 trying to figure out whether what you said made any sense whatsoever, which
2785 is \fBcompile time\fR.
2786 .IX Xref "runtime (term), defined"
2787 .IP "runtime pattern" 4
2788 .IX Item "runtime pattern"
2789 A pattern that contains one or more
2790 variables to be interpolated before parsing the pattern as a \fBregular
2791 expression\fR, and that therefore cannot be analyzed at compile time, but
2792 must be reanalyzed each time the pattern match operator is evaluated.
2793 Runtime patterns are useful but expensive.
2794 .IX Xref "runtime patterns patterns, runtime"
2795 .IP RV 4
2796 .IX Item "RV"
2797 A recreational vehicle, not
2798 to be confused with vehicular recreation. RV also means an internal
2799 Reference Value of the type a \fBscalar\fR can hold. See also \fBIV\fR and \fBNV\fR
2800 if you’re not confused yet.
2801 .IX Xref "Reference Value (RV) RV (Reference Value)"
2802 .IP rvalue 4
2803 .IX Item "rvalue"
2804 A \fBvalue\fR that you might find on the
2805 right side of an \fBassignment\fR. See also \fBlvalue\fR.
2806 .IX Xref "rvalue (term) values, rvalue"
2807 .SS S
2808 .IX Subsection "S"
2809 .IP sandbox 4
2810 .IX Item "sandbox"
2811 A walled off area that’s not supposed to affect beyond
2812 its walls. You let kids play in the sandbox instead of running in the road.
2813 See Camel chapter 20, “Security”.
2814 .IX Xref "sandbox, defined"
2815 .IP scalar 4
2816 .IX Item "scalar"
2817 A simple, singular value; a number, \fBstring\fR, or
2818 \&\fBreference\fR.
2819 .IX Xref "scalars, defined"
2820 .IP "scalar context" 4
2821 .IX Item "scalar context"
2822 The situation in which an
2823 \&\fBexpression\fR is expected by its surroundings (the code calling it) to
2824 return a single \fBvalue\fR rather than a \fBlist\fR of values. See also
2825 \&\fBcontext\fR and \fBlist context\fR. A scalar context sometimes imposes
2826 additional constraints on the return value—see \fBstring context\fR and
2827 \&\fBnumeric context\fR. Sometimes we talk about a \fBBoolean context\fR inside
2828 conditionals, but this imposes no additional constraints, since any scalar
2829 value, whether numeric or \fBstring\fR, is already true or false.
2830 .IX Xref "scalar context, about context, scalar"
2831 .IP "scalar literal" 4
2832 .IX Item "scalar literal"
2833 A number or quoted \fBstring\fR—an actual
2834 \&\fBvalue\fR in the text of your program, as opposed to a \fBvariable\fR.
2835 .IX Xref "scalar literals literals, scalar"
2836 .IP "scalar value" 4
2837 .IX Item "scalar value"
2838 A value that happens to be a
2839 \&\fBscalar\fR as opposed to a \fBlist\fR.
2840 .IX Xref "scalar values, about values, scalar SV"
2841 .IP "scalar variable" 4
2842 .IX Item "scalar variable"
2843 A \fBvariable\fR prefixed with
2844 \&\f(CW\*(C`$\*(C'\fR that holds a single value.
2845 .IX Xref "scalar variables, defined variables, scalar"
2846 .IP scope 4
2847 .IX Item "scope"
2848 From how far away you can see a variable, looking through
2849 one. Perl has two visibility mechanisms. It does \fBdynamic scoping\fR of
2850 \&\f(CW\*(C`local\*(C'\fR \fBvariables\fR, meaning that the rest of the \fBblock\fR, and any
2851 \&\fBsubroutines\fR that are called by the rest of the block, can see the
2852 variables that are local to the block. Perl does \fBlexical scoping\fR of
2853 \&\f(CW\*(C`my\*(C'\fR variables, meaning that the rest of the block can see the variable,
2854 but other subroutines called by the block \fIcannot\fR see the variable.
2855 .IX Xref "scopes, defined"
2856 .IP scratchpad 4
2857 .IX Item "scratchpad"
2858 The area in which a particular invocation of a particular
2859 file or subroutine keeps some of its temporary values, including any
2860 lexically scoped variables.
2861 .IX Xref "scratchpads"
2862 .IP script 4
2863 .IX Item "script"
2864 A text \fBfile\fR that is a program
2865 intended to be \fBexecuted\fR directly rather than \fBcompiled\fR to another form
2866 of file before \fBexecution\fR.
2867 .IX Xref "scripts (term) programs, defined"
2868 .Sp
2869 Also, in the context of \fBUnicode\fR, a writing system for a particular
2870 language or group of languages, such as Greek, Bengali, or Tengwar.
2871 .IP "script kiddie" 4
2872 .IX Item "script kiddie"
2873 A \fBcracker\fR who is not a \fBhacker\fR but knows just enough
2874 to run canned scripts. A \fBcargo\-cult\fR programmer.
2875 .IX Xref "script kiddie"
2876 .IP sed 4
2877 .IX Item "sed"
2878 A venerable Stream EDitor from
2879 which Perl derives some of its ideas.
2880 .IX Xref "sed (Stream EDitor) Stream EDitor (sed)"
2881 .IP semaphore 4
2882 .IX Item "semaphore"
2883 A fancy kind of interlock that prevents multiple \fBthreads\fR or
2884 \&\fBprocesses\fR from using up the same resources simultaneously.
2885 .IX Xref "semaphore"
2886 .IP separator 4
2887 .IX Item "separator"
2888 A \fBcharacter\fR or \fBstring\fR that keeps two surrounding strings from being
2889 confused with each other. The \f(CW\*(C`split\*(C'\fR function works on separators. Not to be confused with \fBdelimiters\fR
2890 or \fBterminators\fR. The “or” in the previous sentence separated the two
2891 alternatives.
2892 .IX Xref "separators characters, separators strings, separators split function, separators and"
2893 .IP serialization 4
2894 .IX Item "serialization"
2895 Putting a fancy \fBdata structure\fR into
2896 linear order so that it can be stored as a \fBstring\fR in a disk file or
2897 database, or sent through a \fBpipe\fR. Also called marshalling.
2898 .IX Xref "serialization marshalling (term)"
2899 .IP server 4
2900 .IX Item "server"
2901 In networking, a \fBprocess\fR that
2902 either advertises a \fBservice\fR or just hangs around at a known location and
2903 waits for \fBclients\fR who need service to get in touch with it.
2904 .IX Xref "servers, defined processes, server"
2905 .IP service 4
2906 .IX Item "service"
2907 Something you do for someone else to make them happy,
2908 like giving them the time of day (or of their life). On some machines,
2909 well\-known services are listed by the \f(CW\*(C`getservent\*(C'\fR
2910 function.
2911 .IX Xref "services (term) getservent function"
2912 .IP setgid 4
2913 .IX Item "setgid"
2914 Same as \fBsetuid\fR, only having to do with giving
2915 away \fBgroup\fR privileges.
2916 .IX Xref "setgid program, about"
2917 .IP setuid 4
2918 .IX Item "setuid"
2919 Said of a program that runs with the privileges of
2920 its \fBowner\fR rather than (as is usually the case) the privileges of whoever
2921 is running it. Also describes the bit in the mode word (\fBpermission bits\fR)
2922 that controls the feature. This bit must be explicitly set by the owner to
2923 enable this feature, and the program must be carefully written not to give
2924 away more privileges than it ought to.
2925 .IX Xref "setuid program, about"
2926 .IP "shared memory" 4
2927 .IX Item "shared memory"
2928 A piece of \fBmemory\fR accessible by two
2929 different \fBprocesses\fR who otherwise would not see each other’s memory.
2930 .IX Xref "shared memory memory, shared"
2931 .IP shebang 4
2932 .IX Item "shebang"
2933 Irish for the whole McGillicuddy. In Perl culture, a
2934 portmanteau of “sharp” and “bang”, meaning the \f(CW\*(C`#!\*(C'\fR sequence that tells
2935 the system where to find the interpreter.
2936 .IX Xref "shebang (term)"
2937 .IP shell 4
2938 .IX Item "shell"
2939 A \fBcommand\fR\-line \fBinterpreter\fR. The program that
2940 interactively gives you a prompt, accepts one or more \fBlines\fR of input,
2941 and executes the programs you mentioned, feeding each of them their proper
2942 \&\fBarguments\fR and input data. Shells can also execute scripts containing
2943 such commands. Under Unix, typical shells include the Bourne shell
2944 (\fI/bin/sh\fR), the C shell (\fI/bin/csh\fR), and the Korn shell (\fI/bin/ksh\fR).
2945 Perl is not strictly a shell because it’s not interactive (although Perl
2946 programs can be interactive).
2947 .IX Xref "shell program, defined"
2948 .IP "side effects" 4
2949 .IX Item "side effects"
2950 Something extra that happens when you evaluate an
2951 \&\fBexpression\fR. Nowadays it can refer to almost anything. For example,
2952 evaluating a simple assignment statement typically has the “side effect” of
2953 assigning a value to a variable. (And you thought assigning the value was
2954 your primary intent in the first place!) Likewise, assigning a value to the
2955 special variable \f(CW$|\fR (\f(CW$AUTOFLUSH\fR) has the side effect of forcing a
2956 flush after every \f(CW\*(C`write\*(C'\fR or \f(CW\*(C`print\*(C'\fR on the currently selected
2957 filehandle.
2958 .IX Xref "side effects"
2959 .IP sigil 4
2960 .IX Item "sigil"
2961 A glyph used in magic. Or, for Perl, the symbol in front
2962 of a variable name, such as \f(CW\*(C`$\*(C'\fR, \f(CW\*(C`@\*(C'\fR, and \f(CW\*(C`%\*(C'\fR.
2963 .IX Xref "sigils, defined"
2964 .IP signal 4
2965 .IX Item "signal"
2966 A bolt out of the blue; that is, an
2967 event triggered by the \fBoperating system\fR, probably when you’re least
2968 expecting it.
2969 .IX Xref "signals and signal handling, about"
2970 .IP "signal handler" 4
2971 .IX Item "signal handler"
2972 A \fBsubroutine\fR that, instead of being content to be
2973 called in the normal fashion, sits around waiting for a bolt out of the
2974 blue before it will deign to \fBexecute\fR. Under Perl, bolts out of the blue
2975 are called signals, and you send them with the \f(CW\*(C`kill\*(C'\fR built\-in. See the
2976 \&\f(CW%SIG\fR hash in Camel chapter 25, “Special Names” and the section “Signals”
2977 in Camel chapter 15, “Interprocess Communication”.
2978 .IX Xref "handlers, signal"
2979 .IP "single inheritance" 4
2980 .IX Item "single inheritance"
2981 The features you got from your
2982 mother, if she told you that you don’t have a father. (See also
2983 \&\fBinheritance\fR and \fBmultiple inheritance\fR.) In computer languages, the
2984 idea that \fBclasses\fR reproduce asexually so that a given class can only
2985 have one direct ancestor or \fBbase class\fR. Perl supplies no such
2986 restriction, though you may certainly program Perl that way if you like.
2987 .IX Xref "single inheritance inheritance, single"
2988 .IP slice 4
2989 .IX Item "slice"
2990 A selection of any number of
2991 \&\fBelements\fR from a \fBlist\fR, \fBarray\fR, or \fBhash\fR.
2992 .IX Xref "slices of elements elements, slices of"
2993 .IP slurp 4
2994 .IX Item "slurp"
2995 To read an entire \fBfile\fR into a \fBstring\fR in one operation.
2996 .IX Xref "slurp (term)"
2997 .IP socket 4
2998 .IX Item "socket"
2999 An endpoint for network communication among multiple
3000 \&\fBprocesses\fR that works much like a telephone or a post office box. The
3001 most important thing about a socket is its \fBnetwork address\fR (like a phone
3002 number). Different kinds of sockets have different kinds of addresses—some
3003 look like filenames, and some don’t.
3004 .IX Xref "sockets, defined"
3005 .IP "soft reference" 4
3006 .IX Item "soft reference"
3007 See \fBsymbolic reference\fR.
3008 .IX Xref "soft references references, soft"
3009 .IP "source filter" 4
3010 .IX Item "source filter"
3011 A special kind of \fBmodule\fR that does
3012 \&\fBpreprocessing\fR on your script just before it gets to the \fBtokener\fR.
3013 .IX Xref "source filters filters, source"
3014 .IP stack 4
3015 .IX Item "stack"
3016 A device you can put things on the top of, and later take
3017 them back off in the opposite order in which you put them on. See \fBLIFO\fR.
3018 .IX Xref "stacks, defined"
3019 .IP standard 4
3020 .IX Item "standard"
3021 Included in the official Perl distribution, as in a
3022 standard module, a standard tool, or a standard Perl \fBmanpage\fR.
3023 .IX Xref "standard (term)"
3024 .IP "standard error" 4
3025 .IX Item "standard error"
3026 The default output \fBstream\fR for nasty remarks that don’t belong in
3027 \&\fBstandard output\fR. Represented within a Perl program by the output> \fBfilehandle\fR \f(CW\*(C`STDERR\*(C'\fR. You can use this
3028 stream explicitly, but the \f(CW\*(C`die\*(C'\fR and \f(CW\*(C`warn\*(C'\fR built\-ins write to your
3029 standard error stream automatically (unless trapped or otherwise
3030 intercepted).
3031 .IX Xref "STDERR filehandle, about"
3032 .IP "standard input" 4
3033 .IX Item "standard input"
3034 The default input \fBstream\fR for your program,
3035 which if possible shouldn’t care where its data is coming from. Represented
3036 within a Perl program by the \fBfilehandle\fR \f(CW\*(C`STDIN\*(C'\fR.
3037 .IX Xref "STDIN filehandle, about"
3038 .IP "standard I/O" 4
3039 .IX Item "standard I/O"
3040 A standard C library for doing \fBbuffered\fR input
3041 and output to the \fBoperating system\fR. (The “standard” of standard I/O is
3042 at most marginally related to the “standard” of standard input and output.)
3043 In general, Perl relies on whatever implementation of standard I/O a given
3044 operating system supplies, so the buffering characteristics of a Perl
3045 program on one machine may not exactly match those on another machine.
3046 Normally this only influences efficiency, not semantics. If your standard
3047 I/O package is doing block buffering and you want it to \fBflush\fR the buffer
3048 more often, just set the \f(CW$|\fR variable to a true value.
3049 .IX Xref "standard I O I O (Input Output), standard Input Output (I O), standard STDIO filehandle"
3050 .IP "Standard Library" 4
3051 .IX Item "Standard Library"
3052 Everything that comes with the official
3053 \&\fIperl\fR distribution. Some vendor versions of \fIperl\fR change their
3054 distributions, leaving out some parts or including extras. See also
3055 \&\fBdual\-lived\fR.
3056 .IX Xref "Standard Perl Library, about"
3057 .IP "standard output" 4
3058 .IX Item "standard output"
3059 The default output \fBstream\fR for your program,
3060 which if possible shouldn’t care where its data is going. Represented
3061 within a Perl program by the \fBfilehandle\fR \f(CW\*(C`STDOUT\*(C'\fR.
3062 .IX Xref "STDOUT filehandle, about"
3063 .IP statement 4
3064 .IX Item "statement"
3065 A \fBcommand\fR to the computer about what to do next,
3066 like a step in a recipe: “Add marmalade to batter and mix until mixed.” A
3067 statement is distinguished from a \fBdeclaration\fR, which doesn’t tell the
3068 computer to do anything, but just to learn something.
3069 .IX Xref "statements, about"
3070 .IP "statement modifier" 4
3071 .IX Item "statement modifier"
3072 A \fBconditional\fR or
3073 \&\fBloop\fR that you put after the \fBstatement\fR instead of before, if you know
3074 what we mean.
3075 .IX Xref "statement modifiers, about modifiers, statement"
3076 .IP static 4
3077 .IX Item "static"
3078 Varying slowly compared to something else. (Unfortunately,
3079 everything is relatively stable compared to something else, except for
3080 certain elementary particles, and we’re not so sure about them.) In
3081 computers, where things are supposed to vary rapidly, “static” has a
3082 derogatory connotation, indicating a slightly dysfunctional \fBvariable\fR,
3083 \&\fBsubroutine\fR, or \fBmethod\fR. In Perl culture, the word is politely avoided.
3084 .IX Xref "static (term)"
3085 .Sp
3086 If you’re a C or C++ programmer, you might be looking for Perl’s \f(CW\*(C`state\*(C'\fR
3087 keyword.
3088 .IP "static method" 4
3089 .IX Item "static method"
3090 No such thing. See \fBclass method\fR.
3091 .IX Xref "static methods methods, static"
3092 .IP "static scoping" 4
3093 .IX Item "static scoping"
3094 No such thing. See \fBlexical scoping\fR.
3095 .IP "static variable" 4
3096 .IX Item "static variable"
3097 No such thing. Just use a \fBlexical
3098 variable\fR in a scope larger than your \fBsubroutine\fR, or declare it with
3099 \&\f(CW\*(C`state\*(C'\fR instead of with \f(CW\*(C`my\*(C'\fR.
3100 .IX Xref "static variables variables, static"
3101 .IP "stat structure" 4
3102 .IX Item "stat structure"
3103 A special internal spot
3104 in which Perl keeps the information about the last \fBfile\fR on which you
3105 requested information.
3106 .IX Xref "stat structure data structures, stat structure"
3107 .IP status 4
3108 .IX Item "status"
3109 The \fBvalue\fR returned to the
3110 parent \fBprocess\fR when one of its child processes dies. This value is
3111 placed in the special variable \f(CW$?\fR. Its upper eight \fBbits\fR are the exit
3112 status of the defunct process, and its lower eight bits identify the signal
3113 (if any) that the process died from. On Unix systems, this status value is
3114 the same as the status word returned by \fIwait\fR(2). See \f(CW\*(C`system\*(C'\fR in Camel
3115 chapter 27, “Functions”.
3116 .IX Xref "status value values, status exit status"
3117 .IP STDERR 4
3118 .IX Item "STDERR"
3119 See \fBstandard error\fR.
3120 .IP STDIN 4
3121 .IX Item "STDIN"
3122 See \fBstandard input\fR.
3123 .IP STDIO 4
3124 .IX Item "STDIO"
3125 See \fBstandard I/O\fR.
3126 .IP STDOUT 4
3127 .IX Item "STDOUT"
3128 See \fBstandard output\fR.
3129 .IP stream 4
3130 .IX Item "stream"
3131 A flow of data into or out of
3132 a process as a steady sequence of bytes or characters, without the
3133 appearance of being broken up into packets. This is a kind of
3134 \&\fBinterface\fR—the underlying \fBimplementation\fR may well break your data up
3135 into separate packets for delivery, but this is hidden from you.
3136 .IX Xref "streaming data processes, streaming data"
3137 .IP string 4
3138 .IX Item "string"
3139 A sequence of characters such as “He said !@#*&%@#*?!”.
3140 A string does not have to be entirely printable.
3141 .IX Xref "strings, defined"
3142 .IP "string context" 4
3143 .IX Item "string context"
3144 The situation in which an expression is
3145 expected by its surroundings (the code calling it) to return a \fBstring\fR.
3146 See also \fBcontext\fR and \fBnumeric context\fR.
3147 .IX Xref "string context context, string"
3148 .IP stringification 4
3149 .IX Item "stringification"
3150 The process of producing a \fBstring\fR representation of an
3151 abstract object.
3152 .IX Xref "stringification"
3153 .IP struct 4
3154 .IX Item "struct"
3155 C keyword introducing a structure definition or name.
3156 .IX Xref "struct keyword"
3157 .IP structure 4
3158 .IX Item "structure"
3159 See \fBdata structure\fR.
3160 .IX Xref "structures"
3161 .IP subclass 4
3162 .IX Item "subclass"
3163 See \fBderived class\fR.
3164 .IP subpattern 4
3165 .IX Item "subpattern"
3166 A component of a \fBregular expression\fR pattern.
3167 .IX Xref "subpatterns, defined"
3168 .IP subroutine 4
3169 .IX Item "subroutine"
3170 A named or otherwise accessible piece of program
3171 that can be invoked from elsewhere in the program in order to accomplish
3172 some subgoal of the program. A subroutine is often parameterized to
3173 accomplish different but related things depending on its input
3174 \&\fBarguments\fR. If the subroutine returns a meaningful \fBvalue\fR, it is also
3175 called a \fBfunction\fR.
3176 .IX Xref "subroutines, defined"
3177 .IP subscript 4
3178 .IX Item "subscript"
3179 A \fBvalue\fR that indicates the position of a particular
3180 \&\fBarray\fR \fBelement\fR in an array.
3181 .IX Xref "subscripts"
3182 .IP substitution 4
3183 .IX Item "substitution"
3184 Changing parts of a string via the \f(CW\*(C`s///\*(C'\fR
3185 operator. (We avoid use of this term to mean \fBvariable interpolation\fR.)
3186 .IX Xref "substitution (s ) operator, about strings, substitution in s (substitution) operator, about"
3187 .IP substring 4
3188 .IX Item "substring"
3189 A portion of a \fBstring\fR, starting at a certain
3190 \&\fBcharacter\fR position (\fBoffset\fR) and proceeding for a certain number of
3191 characters.
3192 .IX Xref "substrings (term)"
3193 .IP superclass 4
3194 .IX Item "superclass"
3195 See \fBbase class\fR.
3196 .IP superuser 4
3197 .IX Item "superuser"
3198 The person whom the \fBoperating system\fR will let do almost
3199 anything. Typically your system administrator or someone pretending to be
3200 your system administrator. On Unix systems, the \fBroot\fR user. On Windows
3201 systems, usually the Administrator user.
3202 .IX Xref "superusers"
3203 .IP SV 4
3204 .IX Item "SV"
3205 Short for “scalar value”. But
3206 within the Perl interpreter, every \fBreferent\fR is treated as a member of a
3207 class derived from SV, in an object\-oriented sort of way. Every \fBvalue\fR
3208 inside Perl is passed around as a C language \f(CW\*(C`SV*\*(C'\fR pointer. The SV
3209 \&\fBstruct\fR knows its own “referent type”, and the code is smart enough (we
3210 hope) not to try to call a \fBhash\fR function on a \fBsubroutine\fR.
3211 .IX Xref "scalar values, about values, scalar"
3212 .IP switch 4
3213 .IX Item "switch"
3214 An option you give on a command line to
3215 influence the way your program works, usually introduced with a minus sign.
3216 The word is also used as a nickname for a \fBswitch statement\fR.
3217 .IX Xref "switches, about switches"
3218 .IP "switch cluster" 4
3219 .IX Item "switch cluster"
3220 The combination of multiple command\-
3221 line switches (\fIe.g.\fR, \f(CW\*(C`–a –b –c\*(C'\fR) into one switch (\fIe.g.\fR, \f(CW\*(C`–abc\*(C'\fR).
3222 Any switch with an additional \fBargument\fR must be the last switch in a
3223 cluster.
3224 .IX Xref "switch clusters clusters, switch"
3225 .IP "switch statement" 4
3226 .IX Item "switch statement"
3227 A program technique that lets you
3228 evaluate an \fBexpression\fR and then, based on the value of the expression,
3229 do a multiway branch to the appropriate piece of code for that value. Also
3230 called a “case structure”, named after the similar Pascal construct. Most
3231 switch statements in Perl are spelled \f(CW\*(C`given\*(C'\fR. See “The \f(CW\*(C`given\*(C'\fR
3232 statement” in Camel chapter 4, “Statements and Declarations”.
3233 .IX Xref "switch statement statements, switch"
3234 .Sp
3235 The \f(CW\*(C`given\*(C'\fR, \f(CW\*(C`when\*(C'\fR keywords and the smartmatch (\f(CW\*(C`~~\*(C'\fR) operator will
3236 be removed in Perl 5.42.
3237 .IP symbol 4
3238 .IX Item "symbol"
3239 Generally, any \fBtoken\fR or \fBmetasymbol\fR. Often used
3240 more specifically to mean the sort of name you might find in a \fBsymbol
3241 table\fR.
3242 .IX Xref "symbols symbols"
3243 .IP "symbolic debugger" 4
3244 .IX Item "symbolic debugger"
3245 A program that lets you step through
3246 the \fBexecution\fR of your program, stopping or printing things out here and
3247 there to see whether anything has gone wrong, and, if so, what. The
3248 “symbolic” part just means that you can talk to the debugger using the same
3249 symbols with which your program is written.
3250 .IX Xref "symbolic debugger debugger, about"
3251 .IP "symbolic link" 4
3252 .IX Item "symbolic link"
3253 An alternate filename that points to the
3254 real \fBfilename\fR, which in turn points to the real \fBfile\fR. Whenever the
3255 \&\fBoperating system\fR is trying to parse a \fBpathname\fR containing a symbolic
3256 link, it merely substitutes the new name and continues parsing.
3257 .IX Xref "symbolic links links, symbolic"
3258 .IP "symbolic reference" 4
3259 .IX Item "symbolic reference"
3260 A variable whose value is the
3261 name of another variable or subroutine. By \fBdereferencing\fR the first
3262 variable, you can get at the second one. Symbolic references are illegal
3263 under \f(CW\*(C`use strict "refs"\*(C'\fR.
3264 .IX Xref "symbolic references references, symbolic"
3265 .IP "symbol table" 4
3266 .IX Item "symbol table"
3267 Where a \fBcompiler\fR remembers symbols. A program
3268 like Perl must somehow remember all the names of all the \fBvariables\fR,
3269 \&\fBfilehandles\fR, and \fBsubroutines\fR you’ve used. It does this by placing the
3270 names in a symbol table, which is implemented in Perl using a \fBhash
3271 table\fR. There is a separate symbol table for each \fBpackage\fR to give each
3272 package its own \fBnamespace\fR.
3273 .IX Xref "symbol tables, about"
3274 .IP synchronous 4
3275 .IX Item "synchronous"
3276 Programming in which the orderly sequence of events
3277 can be determined; that is, when things happen one after the other, not at
3278 the same time.
3279 .IX Xref "synchronous (term)"
3280 .IP "syntactic sugar" 4
3281 .IX Item "syntactic sugar"
3282 An alternative way of writing something more easily; a
3283 shortcut.
3284 .IX Xref "syntactic sugar"
3285 .IP syntax 4
3286 .IX Item "syntax"
3287 From Greek σύνταξις, “with\-arrangement”. How things
3288 (particularly symbols) are put together with each other.
3289 .IX Xref "syntax, about"
3290 .IP "syntax tree" 4
3291 .IX Item "syntax tree"
3292 An internal representation of your program wherein
3293 lower\-level \fBconstructs\fR dangle off the higher\-level constructs enclosing
3294 them.
3295 .IX Xref "syntax tree"
3296 .IP syscall 4
3297 .IX Item "syscall"
3298 A \fBfunction\fR call directly to the \fBoperating
3299 system\fR. Many of the important subroutines and functions you use aren’t
3300 direct system calls, but are built up in one or more layers above the
3301 system call level. In general, Perl programmers don’t need to worry about
3302 the distinction. However, if you do happen to know which Perl functions are
3303 really syscalls, you can predict which of these will set the \f(CW$!\fR
3304 (\f(CW$ERRNO\fR) variable on failure. Unfortunately, beginning programmers often
3305 confusingly employ the term “system call” to mean what happens when you
3306 call the Perl \f(CW\*(C`system\*(C'\fR function, which actually involves many syscalls. To
3307 avoid any confusion, we nearly always say “syscall” for something you could
3308 call indirectly via Perl’s \f(CW\*(C`syscall\*(C'\fR function, and never for something you
3309 would call with Perl’s \f(CW\*(C`system\*(C'\fR function.
3310 .IX Xref "syscall function, about"
3311 .SS T
3312 .IX Subsection "T"
3313 .IP "taint checks" 4
3314 .IX Item "taint checks"
3315 The special bookkeeping Perl does to track the flow
3316 of external data through your program and disallow their use in system
3317 commands.
3318 .IX Xref "taint checks, about"
3319 .IP tainted 4
3320 .IX Item "tainted"
3321 Said of data derived from the grubby hands of a user,
3322 and thus unsafe for a secure program to rely on. Perl does taint checks if
3323 you run a \fBsetuid\fR (or \fBsetgid\fR) program, or if you use the \f(CW\*(C`–T\*(C'\fR switch.
3324 .IX Xref "tainted data, about"
3325 .IP "taint mode" 4
3326 .IX Item "taint mode"
3327 Running under the \f(CW\*(C`–T\*(C'\fR switch, marking all external data as
3328 suspect and refusing to use it with system commands. See Camel chapter 20,
3329 “Security”.
3330 .IX Xref "taint mode"
3331 .IP TCP 4
3332 .IX Item "TCP"
3333 Short for Transmission Control Protocol. A protocol wrapped around the
3334 Internet Protocol to make an unreliable packet transmission mechanism
3335 appear to the application program to be a reliable \fBstream\fR of bytes.
3336 (Usually.)
3337 .IX Xref "TCP (Transmission Control Protocol) Transmission Control Protocol (TCP)"
3338 .IP term 4
3339 .IX Item "term"
3340 Short for a “terminal”—that is, a leaf node of a \fBsyntax
3341 tree\fR. A thing that functions grammatically as an \fBoperand\fR for the
3342 operators in an expression.
3343 .IX Xref "terms, defined"
3344 .IP terminator 4
3345 .IX Item "terminator"
3346 A \fBcharacter\fR or \fBstring\fR that marks the end of another string. The \f(CW$/\fR
3347 variable contains the string that terminates a \f(CW\*(C`readline\*(C'\fR operation, which
3348 \&\f(CW\*(C`chomp\*(C'\fR deletes from the end. Not to be confused with \fBdelimiters\fR or
3349 \&\fBseparators\fR. The period at the end of this sentence is a terminator.
3350 .IX Xref "terminators (term) characters, terminators strings, terminators in"
3351 .IP ternary 4
3352 .IX Item "ternary"
3353 An \fBoperator\fR taking three \fBoperands\fR. Sometimes
3354 pronounced \fBtrinary\fR.
3355 .IX Xref "ternary operators"
3356 .IP text 4
3357 .IX Item "text"
3358 A \fBstring\fR or \fBfile\fR containing primarily printable characters.
3359 .IX Xref "text, defined strings, text files, text text"
3360 .IP thread 4
3361 .IX Item "thread"
3362 Like a forked process, but without \fBfork\fR’s inherent
3363 memory protection. A thread is lighter weight than a full process, in that
3364 a process could have multiple threads running around in it, all fighting
3365 over the same process’s memory space unless steps are taken to protect
3366 threads from one another.
3367 .IX Xref "threads (term)"
3368 .IP tie 4
3369 .IX Item "tie"
3370 The bond between a magical variable and its
3371 implementation class. See the \f(CW\*(C`tie\*(C'\fR function in Camel chapter 27,
3372 “Functions” and Camel chapter 14, “Tied Variables”.
3373 .IX Xref "tied variables, about"
3374 .IP titlecase 4
3375 .IX Item "titlecase"
3376 The case used for capitals
3377 that are followed by lowercase characters instead of by more capitals.
3378 Sometimes called sentence case or headline case. English doesn’t use
3379 Unicode titlecase, but casing rules for English titles are more complicated
3380 than simply capitalizing each word’s first character.
3381 .IX Xref "titlecase characters characters, titlecase"
3382 .IP TMTOWTDI 4
3383 .IX Item "TMTOWTDI"
3384 There’s More Than One Way To Do It, the Perl Motto. The
3385 notion that there can be more than one valid path to solving a programming
3386 problem in context. (This doesn’t mean that more ways are always better or
3387 that all possible paths are equally desirable—just that there need not be
3388 One True Way.)
3389 .IX Xref "TMTOWTDI acronym"
3390 .IP token 4
3391 .IX Item "token"
3392 A morpheme in a programming language, the smallest unit
3393 of text with semantic significance.
3394 .IX Xref "tokens, defined"
3395 .IP tokener 4
3396 .IX Item "tokener"
3397 A module that breaks a program text into a sequence of
3398 \&\fBtokens\fR for later analysis by a parser.
3399 .IX Xref "tokeners, defined"
3400 .IP tokenizing 4
3401 .IX Item "tokenizing"
3402 Splitting up a program text into \fBtokens\fR. Also known as
3403 “lexing”, in which case you get “lexemes” instead of tokens.
3404 .IX Xref "tokenizing"
3405 .IP "toolbox approach" 4
3406 .IX Item "toolbox approach"
3407 The notion that, with a complete set of simple tools
3408 that work well together, you can build almost anything you want. Which is
3409 fine if you’re assembling a tricycle, but if you’re building a
3410 defranishizing comboflux regurgalator, you really want your own machine
3411 shop in which to build special tools. Perl is sort of a machine shop.
3412 .IX Xref "toolbox approach"
3413 .IP topic 4
3414 .IX Item "topic"
3415 The thing you’re working on. Structures like
3416 \&\f(CWwhile(<>)\fR, \f(CW\*(C`for\*(C'\fR, \f(CW\*(C`foreach\*(C'\fR, and \f(CW\*(C`given\*(C'\fR set the topic for
3417 you by assigning to \f(CW$_\fR, the default (\fItopic\fR) variable.
3418 .IX Xref "topics (term)"
3419 .IP transliterate 4
3420 .IX Item "transliterate"
3421 To turn one string
3422 representation into another by mapping each character of the source string
3423 to its corresponding character in the result string. Not to be confused
3424 with translation: for example, Greek \fIπολύχρωμος\fR transliterates into
3425 \&\fIpolychromos\fR but translates into \fImany\-colored\fR. See the \f(CW\*(C`tr///\*(C'\fR
3426 operator in Camel chapter 5, “Pattern Matching”.
3427 .IX Xref "tr (transliteration) operator, about strings, transliteration of transliteration (tr ) operator, about"
3428 .IP trigger 4
3429 .IX Item "trigger"
3430 An event that causes a \fBhandler\fR to be run.
3431 .IX Xref "triggers (term)"
3432 .IP trinary 4
3433 .IX Item "trinary"
3434 Not a stellar system with three stars, but an
3435 \&\fBoperator\fR taking three \fBoperands\fR. Sometimes pronounced \fBternary\fR.
3436 .IX Xref "trinary operators"
3437 .IP troff 4
3438 .IX Item "troff"
3439 A venerable typesetting language from which Perl derives
3440 the name of its \f(CW$%\fR variable and which is secretly used in the production
3441 of Camel books.
3442 .IX Xref "troff language"
3443 .IP true 4
3444 .IX Item "true"
3445 Any scalar value that doesn’t evaluate to 0 or
3446 \&\f(CW""\fR.
3447 .IX Xref "true values values, true"
3448 .IP truncating 4
3449 .IX Item "truncating"
3450 Emptying a file of existing
3451 contents, either automatically when opening a file for writing or
3452 explicitly via the \f(CW\*(C`truncate\*(C'\fR function.
3453 .IX Xref "truncate function files, truncating"
3454 .IP type 4
3455 .IX Item "type"
3456 See \fBdata type\fR and \fBclass\fR.
3457 .IX Xref "type"
3458 .IP "type casting" 4
3459 .IX Item "type casting"
3460 Converting data from one type to another. C permits this.
3461 Perl does not need it. Nor want it.
3462 .IX Xref "type casting"
3463 .IP typedef 4
3464 .IX Item "typedef"
3465 A type definition in the C and C++ languages.
3466 .IX Xref "typedef"
3467 .IP "typed lexical" 4
3468 .IX Item "typed lexical"
3469 A \fBlexical variable\fR lexical>that is declared with a \fBclass\fR
3470 type: \f(CW\*(C`my Pony $bill\*(C'\fR.
3471 .IX Xref "typed lexicals lexical variables, typed lexicals variables, variable"
3472 .IP typeglob 4
3473 .IX Item "typeglob"
3474 Use of a single identifier, prefixed with \f(CW\*(C`*\*(C'\fR. For
3475 example, \f(CW*name\fR stands for any or all of \f(CW$name\fR, \f(CW@name\fR, \f(CW%name\fR,
3476 \&\f(CW&name\fR, or just \f(CW\*(C`name\*(C'\fR. How you use it determines whether it is
3477 interpreted as all or only one of them. See “Typeglobs and Filehandles” in
3478 Camel chapter 2, “Bits and Pieces”.
3479 .IX Xref "typeglobs, defined"
3480 .IP typemap 4
3481 .IX Item "typemap"
3482 A description of how C types may be transformed to and from Perl
3483 types within an \fBextension\fR module written in \fBXS\fR.
3484 .IX Xref "typemap"
3485 .SS U
3486 .IX Subsection "U"
3487 .IP UDP 4
3488 .IX Item "UDP"
3489 User Datagram Protocol, the typical way to send
3490 \&\fBdatagrams\fR over the Internet.
3491 .IX Xref "User Datagram Protocol (UDP) UDP (User Datagram Protocol) datagrams, UDP support"
3492 .IP UID 4
3493 .IX Item "UID"
3494 A user ID. Often used in the context of
3495 \&\fBfile\fR or \fBprocess\fR ownership.
3496 .IX Xref "UID (user ID) user ID (UID)"
3497 .IP umask 4
3498 .IX Item "umask"
3499 A mask of those \fBpermission bits\fR that should be forced
3500 off when creating files or directories, in order to establish a policy of
3501 whom you’ll ordinarily deny access to. See the \f(CW\*(C`umask\*(C'\fR function.
3502 .IX Xref "umask function"
3503 .IP "unary operator" 4
3504 .IX Item "unary operator"
3505 An operator with only one \fBoperand\fR, like \f(CW\*(C`!\*(C'\fR or
3506 \&\f(CW\*(C`chdir\*(C'\fR. Unary operators are usually prefix operators; that is, they
3507 precede their operand. The \f(CW\*(C`++\*(C'\fR and \f(CW\*(C`––\*(C'\fR operators can be either prefix
3508 or postfix. (Their position \fIdoes\fR change their meanings.)
3509 .IX Xref "unary operators, about"
3510 .IP Unicode 4
3511 .IX Item "Unicode"
3512 A character set comprising all the major character sets of
3513 the world, more or less. See <http://www.unicode.org>.
3514 .IX Xref "Unicode, about"
3515 .IP Unix 4
3516 .IX Item "Unix"
3517 A very large and constantly evolving language with several
3518 alternative and largely incompatible syntaxes, in which anyone can define
3519 anything any way they choose, and usually do. Speakers of this language
3520 think it’s easy to learn because it’s so easily twisted to one’s own ends,
3521 but dialectical differences make tribal intercommunication nearly
3522 impossible, and travelers are often reduced to a pidgin\-like subset of the
3523 language. To be universally understood, a Unix shell programmer must spend
3524 years of study in the art. Many have abandoned this discipline and now
3525 communicate via an Esperanto\-like language called Perl.
3526 .IX Xref "Unix language"
3527 .Sp
3528 In ancient times, Unix was also used to refer to some code that a couple of
3529 people at Bell Labs wrote to make use of a PDP\-7 computer that wasn’t doing
3530 much of anything else at the time.
3531 .IP uppercase 4
3532 .IX Item "uppercase"
3533 In Unicode, not just
3534 characters with the General Category of Uppercase Letter, but any character
3535 with the Uppercase property, including some Letter Numbers and Symbols. Not
3536 to be confused with \fBtitlecase\fR.
3537 .IX Xref "uppercase characters characters, uppercase"
3538 .IP "UTF\-8 string" 4
3539 .IX Item "UTF-8 string"
3540 A "string" whose ordinals represent a valid sequence of UTF\-8 bytes.
3541 Sometimes called a "UTF\-8 encoded string".
3542 .Sp
3543 (\fBIMPORTANT:\fR This is unrelated to Perl’s internal
3544 “UTF8 flag”, which only Perl itself
3545 should usually care about. UTF\-8 strings may have that flag set or unset.)
3546 .SS V
3547 .IX Subsection "V"
3548 .IP value 4
3549 .IX Item "value"
3550 An actual piece of data, in contrast to all the
3551 variables, references, keys, indices, operators, and whatnot that you need
3552 to access the value.
3553 .IX Xref "values, defined"
3554 .IP variable 4
3555 .IX Item "variable"
3556 A named storage location that can hold any
3557 of various kinds of \fBvalue\fR, as your program sees fit.
3558 .IX Xref "variables, defined variables"
3559 .IP "variable interpolation" 4
3560 .IX Item "variable interpolation"
3561 The \fBinterpolation\fR of
3562 a scalar or array variable into a string.
3563 .IX Xref "variable interpolation interpolation, variable"
3564 .IP variadic 4
3565 .IX Item "variadic"
3566 Said of a \fBfunction\fR that happily receives an
3567 indeterminate number of \fBactual arguments\fR.
3568 .IX Xref "variadic (term)"
3569 .IP vector 4
3570 .IX Item "vector"
3571 Mathematical jargon for a list of \fBscalar values\fR.
3572 .IX Xref "vectors"
3573 .IP virtual 4
3574 .IX Item "virtual"
3575 Providing the appearance of something without the reality,
3576 as in: virtual memory is not real memory. (See also \fBmemory\fR.) The
3577 opposite of “virtual” is “transparent”, which means providing the reality
3578 of something without the appearance, as in: Perl handles the
3579 variable\-length UTF‑8 character encoding transparently.
3580 .IX Xref "virtual (term)"
3581 .IP "void context" 4
3582 .IX Item "void context"
3583 A form of \fBscalar context\fR in which an
3584 \&\fBexpression\fR is not expected to return any \fBvalue\fR at all and is
3585 evaluated for its \fBside effects\fR alone.
3586 .IX Xref "void context context, void"
3587 .IP v\-string 4
3588 .IX Item "v-string"
3589 A “version” or “vector” \fBstring\fR
3590 specified with a \f(CW\*(C`v\*(C'\fR followed by a series of decimal integers in dot
3591 notation, for instance, \f(CW\*(C`v1.20.300.4000\*(C'\fR. Each number turns into a
3592 \&\fBcharacter\fR with the specified ordinal value. (The \f(CW\*(C`v\*(C'\fR is optional when
3593 there are at least three integers.)
3594 .IX Xref "v–strings strings, v–strings"
3595 .SS W
3596 .IX Subsection "W"
3597 .IP warning 4
3598 .IX Item "warning"
3599 A message printed to the \f(CW\*(C`STDERR\*(C'\fR stream to the effect that something might be
3600 wrong but isn’t worth blowing up over. See \f(CW\*(C`warn\*(C'\fR in Camel chapter 27,
3601 “Functions” and the \f(CW\*(C`warnings\*(C'\fR pragma in Camel chapter 28, “Pragmantic
3602 Modules”.
3603 .IX Xref "warning messages STDERR filehandle, warning messages and"
3604 .IP "watch expression" 4
3605 .IX Item "watch expression"
3606 An expression which, when its value
3607 changes, causes a breakpoint in the Perl debugger.
3608 .IX Xref "watch expression expressions, watch"
3609 .IP "weak reference" 4
3610 .IX Item "weak reference"
3611 A reference that doesn’t get counted
3612 normally. When all the normal references to data disappear, the data
3613 disappears. These are useful for circular references that would never
3614 disappear otherwise.
3615 .IX Xref "weak references references, weak"
3616 .IP whitespace 4
3617 .IX Item "whitespace"
3618 A \fBcharacter\fR that moves
3619 your cursor but doesn’t otherwise put anything on your screen. Typically
3620 refers to any of: space, tab, line feed, carriage return, or form feed. In
3621 Unicode, matches many other characters that Unicode considers whitespace,
3622 including the ɴ\-ʙʀ .
3623 .IX Xref "whitespace characters characters, whitespace"
3624 .IP word 4
3625 .IX Item "word"
3626 In normal “computerese”, the piece of data of the size most
3627 efficiently handled by your computer, typically 32 bits or so, give or take a
3628 few powers of 2. In Perl culture, it more often refers to an alphanumeric
3629 \&\fBidentifier\fR (including underscores), or to a string of nonwhitespace
3630 \&\fBcharacters\fR bounded by whitespace or string boundaries.
3631 .IX Xref "words (term)"
3632 .IP "working directory" 4
3633 .IX Item "working directory"
3634 Your current \fBdirectory\fR, from
3635 which relative pathnames are interpreted by the \fBoperating system\fR. The
3636 operating system knows your current directory because you told it with a
3637 \&\f(CW\*(C`chdir\*(C'\fR, or because you started out in the place where your parent
3638 \&\fBprocess\fR was when you were born.
3639 .IX Xref "working directory directories, working"
3640 .IP wrapper 4
3641 .IX Item "wrapper"
3642 A program or subroutine that runs some other program or
3643 subroutine for you, modifying some of its input or output to better suit
3644 your purposes.
3645 .IX Xref "wrappers (term)"
3646 .IP WYSIWYG 4
3647 .IX Item "WYSIWYG"
3648 What You See Is What You Get. Usually used when something
3649 that appears on the screen matches how it will eventually look, like Perl’s
3650 \&\f(CW\*(C`format\*(C'\fR declarations. Also used to mean the opposite of magic because
3651 everything works exactly as it appears, as in the three\- argument form of
3652 \&\f(CW\*(C`open\*(C'\fR.
3653 .IX Xref "WYSIWYG acronym"
3654 .SS X
3655 .IX Subsection "X"
3656 .IP XS 4
3657 .IX Item "XS"
3658 An extraordinarily
3659 exported, expeditiously excellent, expressly eXternal Subroutine, executed
3660 in existing C or C++ or in an exciting extension language called
3661 (exasperatingly) XS.
3662 .IX Xref "XS (eXternal Subroutine) eXternal Subroutine (XS)"
3663 .IP XSUB 4
3664 .IX Item "XSUB"
3665 An external \fBsubroutine\fR defined in \fBXS\fR.
3666 .IX Xref "XSUB (term)"
3667 .SS Y
3668 .IX Subsection "Y"
3669 .IP yacc 4
3670 .IX Item "yacc"
3671 Yet Another Compiler Compiler. A parser generator without
3672 which Perl probably would not have existed. See the file \fIperly.y\fR in the
3673 Perl source distribution.
3674 .IX Xref "yacc acronym"
3675 .SS Z
3676 .IX Subsection "Z"
3677 .IP "zero width" 4
3678 .IX Item "zero width"
3679 A subpattern \fBassertion\fR matching the \fBnull
3680 string\fR between \fBcharacters\fR.
3681 .IX Xref "zero–width assertions subpatterns, zero–width assertions assertions (in regexes), zero–width"
3682 .IP zombie 4
3683 .IX Item "zombie"
3684 A process that has died (exited) but
3685 whose parent has not yet received proper notification of its demise by
3686 virtue of having called \f(CW\*(C`wait\*(C'\fR or \f(CW\*(C`waitpid\*(C'\fR. If you \f(CW\*(C`fork\*(C'\fR, you must
3687 clean up after your child processes when they exit; otherwise, the process
3688 table will fill up and your system administrator will Not Be Happy with
3689 you.
3690 .IX Xref "zombie processes processes, zombie"
3691 .SH "AUTHOR AND COPYRIGHT"
3692 .IX Header "AUTHOR AND COPYRIGHT"
3693 Based on the Glossary of \fIProgramming Perl\fR, Fourth Edition,
3694 by Tom Christiansen, brian d foy, Larry Wall, & Jon Orwant.
3695 Copyright (c) 2000, 1996, 1991, 2012 O\*(AqReilly Media, Inc.
3696 This document may be distributed under the same terms as Perl itself.