Permalink
Browse files

Fixed a typo reported by Ahmad M. Zawawi (GH #222).

  • Loading branch information...
1 parent 9d0d9f0 commit e25ebfe319bb94c90a44c8e1341f6dc0bc1a56fa @chromatic committed Sep 14, 2012
Showing with 12 additions and 16 deletions.
  1. +3 −0 CREDITS
  2. +2 −1 build/html/style.css
  3. +4 −4 sections/chapter_11.pod
  4. +2 −2 sections/control_flow.pod
  5. +0 −8 sections/globals.pod
  6. +1 −1 sections/values.pod
View
@@ -254,3 +254,6 @@ E: dgholz@gmail.com
N: Kevin Granade
E: kevingranade@linuxwrangling.com
+
+N: Ahmad M. Zawawi
+E: ahmad.zawawi@gmail.com
View
@@ -24,7 +24,8 @@ code {
font: normal normal normal medium/1.2 Consolas, 'Andale Mono', Monaco, 'Liberation Mono', 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', monospace;
}
-table { font-size: 12px; font-family: sans-serif; }
+table { font-size: 12px; font-family: sans-serif; border: 1px solid; }
+td { border: 1px solid; }
th { background: #CCCCCC; text-align: left;}
View
@@ -1,9 +1,9 @@
=head0 What to Avoid
-Perl 5 isn't perfect. Some features are difficult to use correctly. Otherwise
-have never worked well. A few are quirky combinations of other features with
-strange edge cases. While you're better off avoiding these features, knowing
-why to avoid them will help you find better solutions.
+Perl 5 isn't perfect. Some features are difficult to use correctly. Others have
+never worked well. A few are quirky combinations of other features with strange
+edge cases. While you're better off avoiding these features, knowing why to
+avoid them will help you find better solutions.
L<barewords>
@@ -539,8 +539,8 @@ alias C<$_> to the variable:
for ($user_input)
{
- s/\A\s+/; # trim leading whitespace
- s/\s+\z/; # trim trailing whitespace
+ s/\A\s+//; # trim leading whitespace
+ s/\s+\z//; # trim trailing whitespace
$_ = quotemeta; # escape non-word characters
}
View
@@ -93,14 +93,6 @@ if you don't explicitly read from those variables.
Modern Perl programs should use the C<@-> variable as a replacement for the
terrible three.
-=for author
-
-I don't understand this strategy. What is being replaced? In Modern
-Perl, we have the /p modifier with gives us the not-so-terrible three,
-${^MATCH}, ${^PREMATCH}, and ${^POSTMATCH}.
-
-=end for
-
=head2 Useful Super Globals
X<super globals; useful>
View
@@ -435,7 +435,7 @@ a sequence of octets or a sequence of characters. Perl allows you to combine
these types through the use of implicit conversions. When these conversions are
wrong, they're rarely I<obviously> wrong.
-When Perl concatenates a sequences of octets with a sequence of Unicode
+When Perl concatenates a sequence of octets with a sequence of Unicode
characters, it implicitly decodes the octet sequence using the Latin-1
encoding. The resulting string will contain Unicode characters. When you print
Unicode characters, Perl will encode the string using UTF-8, because Latin-1

0 comments on commit e25ebfe

Please sign in to comment.