Index

Symbols

& (ampersand), sigil for subroutines, 17

&&, and operator used in place of, 67–68

$ anchor, 124

$ (dollar sign), sigil for scalars, 17

$_ (dollar underscore)

built-ins that use, 58

as default for many operations, 53–54

localizing, 55

main package and, 54

-p switch and, 430

programming style and, 55–56

$’ match variable, 117

$` match variable, 117

$. special variable, 429–430

$& match variable, 117

$1, $2, $3 capture variables, 103–105

$@, for handling exceptions, 365, 370–371

$dbh, per-class database connections, 389

$^C variable, 426

“ ” (double quotes), options for quote strings, 73–74

%+ hash, labeled capture results in, 114–115

% (percent symbol), sigil for hashes, 17

( ) [ ], forcing list context, 60

( ) (parentheses). See ...

Get Effective Perl Programming: Ways to Write Better, More Idiomatic Perl, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.