Skip to content

Commit 297a21f

Browse files
committed
Addressed copyedit questions.
1 parent a5ff0d5 commit 297a21f

12 files changed

+75
-63
lines changed

sections/attributes.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Z<attributes>
44

55
Named entities in Perl--variables and functions--can have additional metadata
6-
attached in the form of I<attributes>. These are form arbitrary names and
6+
attached in the form of I<attributes>. These attributes are arbitrary names and
77
values used with certain types of metaprogramming (L<code_generation>).
88

99
Attribute declaration syntax is awkward, and using attributes effectively is

sections/chapter_00.pod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ appreciate this.
101101

102102
This book would not have been possible without questions, comments,
103103
suggestions, advice, wisdom, and encouragement from many, many people. In
104-
particular, the author and editor thank:
104+
particular, the author thanks this edition's tech reviewers Andy Lester, Sean
105+
Lindsay, and Mohsen Jokar as well as Michael Swaine, editor of this edition.
106+
Contributors to this and previous editions include:
105107

106108
L<credits>
107109

sections/closures.pod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,9 @@ function which takes several parameters:
216216
=end programlisting
217217

218218
Myriad customization possibilities might work very well in a full-sized ice
219-
cream store, but for a drive-through ice cream cart where you only serve French
220-
vanilla ice cream on Cavendish bananas, every call to C<make_sundae()> passes
221-
arguments that never change.
219+
cream store, but for an ice cream cart where you only serve French vanilla ice
220+
cream on Cavendish bananas, every call to C<make_sundae()> passes arguments
221+
that never change.
222222

223223
X<partial application>
224224

sections/files.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ C<file()> function to create an object representing a file:
475475

476476
=end programlisting
477477

478-
You can get File objects from directories and vice versa:
478+
You can get file objects from directories and vice versa:
479479

480480
=begin programlisting
481481

sections/functions.pod

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ use list assignment, but you may also access individual elements by index:
112112

113113
=end programlisting
114114

115-
You may also C<unshift>, C<push>, C<pop>, C<splice>, and slice C<@_>. Remember
116-
that the array builtins use C<@_> as the default operand I<within functions>,
117-
so that C<my $name = shift;> works. Take advantage of this idiom.
115+
You may also C<unshift>, C<push>, C<pop>, C<splice>, and use slices of C<@_>.
116+
Remember that the array builtins use C<@_> as the default operand I<within
117+
functions>, so that C<my $name = shift;> works. Take advantage of this idiom.
118118

119119
To access a single scalar parameter from C<@_>, use C<shift>, an index of
120120
C<@_>, or lvalue list context parentheses. Otherwise, Perl will happily
@@ -541,10 +541,10 @@ X<C<Carp>>
541541
X<C<Carp>; C<croak()>>
542542
X<C<Carp>; C<carp()>>
543543

544-
The standard C<Carp> module uses C<caller> to report errors and throwing
545-
warnings in functions. When used in place of C<die> in library code, C<croak()>
546-
throws an exception from the point of view of its caller. C<carp()> reports a
547-
warning from the file and line number of its caller (L<producing_warnings>).
544+
The standard C<Carp> module uses C<caller> to enhance error and warning
545+
messages. When used in place of C<die> in library code, C<croak()> throws an
546+
exception from the point of view of its caller. C<carp()> reports a warning
547+
from the file and line number of its caller (L<producing_warnings>).
548548

549549
Use C<caller> (or C<Carp>) when validating parameters or preconditions of a
550550
function to indicate that whatever called the function did so erroneously.

sections/idioms.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ turns an ordinary list into an obvious list of pairs of arguments:
5353

5454
=end programlisting
5555

56-
Unpacks these parameters into a hash and treat that hash as if it were a single
57-
argument:
56+
You can unpack these parameters into a hash and treat that hash as if it were
57+
a single argument:
5858

5959
=begin programlisting
6060

sections/operator_characteristics.pod

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,6 @@ X<C<//>; infix operator>
149149
X<C<|=>; infix operator>
150150
X<C<||=>; infix operator>
151151
X<C<//=>; infix operator>
152-
153-
I<Infix> operators appear between their operands. Most mathematical operators
154-
are infix operators, such as the multiplication operator in C<$length
155-
* $width>.
156-
157152
X<C<\>; prefix operator>
158153
X<C<~>; prefix operator>
159154
X<C<++>; prefix operator>
@@ -162,25 +157,31 @@ X<C<+>; prefix operator>
162157
X<C<->; prefix operator>
163158
X<C<!>; prefix operator>
164159
X<C<!!>; prefix operator>
165-
166-
I<Prefix> operators precede their operands. I<Postfix> operators follow their
167-
operands. These operators tend to be unary, such as mathematic negation
168-
(C<-$x>), boolean negation (C<!$y>), and postfix increment (C<$z++>).
169-
170160
X<C<()>; circumfix operator>
171161
X<C<{}>; circumfix operator>
172162
X<C<[]>; circumfix operator>
173163
X<C<//>; circumfix operator>
174164
X<C<``>; circumfix operator>
175165
X<C<''>; circumfix operator>
176166
X<C<"">; circumfix operator>
177-
178-
I<Circumfix> operators surround their operands, as with the anonymous hash
179-
constructor (C<{ ... }>) and quoting operators (C<qq[ ... ]>).
180-
181167
X<C<()>; postcircumfix operator>
182168
X<C<{}>; postcircumfix operator>
183169
X<C<[]>; postcircumfix operator>
184170

185-
I<Postcircumfix> operators follow certain operands and surround others, as seen
171+
=over 4
172+
173+
=item * I<Infix> operators appear between their operands. Most mathematical operators
174+
are infix operators, such as the multiplication operator in C<$length
175+
* $width>.
176+
177+
=item * I<Prefix> operators precede their operands. I<Postfix> operators follow their
178+
operands. These operators tend to be unary, such as mathematic negation
179+
(C<-$x>), boolean negation (C<!$y>), and postfix increment (C<$z++>).
180+
181+
=item * I<Circumfix> operators surround their operands, as with the anonymous hash
182+
constructor (C<{ ... }>) and quoting operators (C<qq[ ... ]>).
183+
184+
=item * I<Postcircumfix> operators follow certain operands and surround others, as seen
186185
in hash and array element access (C<$hash{$x}> and C<$array[$y]>).
186+
187+
=back

sections/packages.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ at any point, either with a new package declaration:
169169

170170
You can add to a package at any point during compilation or runtime, regardless
171171
of the current file, though building up a package from multiple declarations in
172-
multiple can make code difficult to spelunk.
172+
multiple files can make code difficult to spelunk.
173173

174174
X<namespaces; multi-level>
175175

sections/perl_community.pod

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,9 @@ X<RT>
5757
X<Best Practical>
5858

5959
Best Practical Solutions (U<http://bestpractical.com/>) maintains an
60-
installation of their popular request tracking system, RT, for CPAN authors as
61-
well as Perl development. Every CPAN distribution has its own RT queue on
62-
U<http://rt.cpan.org/>. Perl itself has a ticket queue at
63-
U<http://rt.perl.org/>.
60+
installation of RT, its popular request-tracking system, for Perl development.
61+
Perl's queue is U<http://rt.perl.org/>. Every CPAN distribution has its own
62+
queue on U<http://rt.cpan.org/>.
6463

6564
X<Perl 5 Porters>
6665
X<p5p>
@@ -105,9 +104,6 @@ meetings. In particular, the community-run YAPC--Yet Another Perl
105104
Conference--is a successful, local, low-cost conference model held on multiple
106105
continents. See U<http://yapc.org/>.
107106

108-
The Perl Foundation wiki lists other events at
109-
U<http://www.perlfoundation.org/perl5/index.cgi?perl_events>.
110-
111107
X<Perl Mongers>
112108

113109
Hundreds of local Perl Mongers groups get together frequently for technical

sections/regular_expressions.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ The C<\d> metacharacter matches Unicode digits:
438438

439439
=end programlisting
440440

441-
C<Regexp::English>
442-
C<CPAN; C<Regexp::English>>
441+
X<Regexp::English>
442+
X<CPAN; C<Regexp::English>>
443443

444444
... though in this case, the C<Regexp::English> module has a much better phone
445445
number regex already written for you.

0 commit comments

Comments
 (0)