Glossary
A
- accessor methods
A method used to indirectly inspect or update an object's state (its instance variables).
- actual arguments
The scalar values that you supply to a function or subroutine when you call it. For instance, when you call
power("puff")
, the string"puff"
is the actual argument. See also argument and formal arguments.- address operator
Some languages work directly with the memory addresses of values, but this can be like playing with fire. Perl provides a set of asbestos gloves for handling all memory management. The closest to an address operator in Perl is the backslash operator, but it gives you a hard reference, which is much safer than a memory address.
- algorithm
A well-defined sequence of steps, clearly enough explained that even a computer could do them.
- alias
A nickname for something, which behaves in all ways as though you'd used the original name instead of the nickname. Temporary aliases are implicitly created in the loop variable for
foreach
loops, in the$_
variable formap
orgrep
operators, in$a
and$b
duringsort
's comparison function, and in each element of@_
for the actual arguments of a subroutine call. Permanent aliases are explicitly created in packages by importing symbols or by assignment to typeglobs. Lexically scoped aliases for package variables are explicitly created by theour
declaration.- alternatives
A list of possible choices from which you may select only one, as in "Would you like door A, B, or C?" Alternatives in regular expressions ...
Get Programming Perl, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.