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