[PATCH] perlintro: fix typo & clarify a bit
[email protected] (Steven Schubiger) Wed, 23 May 2007 23:35:09 +0200
| Newsgroups | perl.perlfaq.workers |
|---|---|
| Message-ID | <[email protected]> |
--- perlintro.pod.orig 2006-07-13 10:49:48.000000000 +0200
+++ perlintro.pod 2007-05-23 23:29:41.789757200 +0200
@@ -63,7 +63,7 @@
=head2 Safety net
Perl by default is very forgiving. In order to make it more robust
-it is recommened to start every program with the following lines:
+it is recommended to start every program with the following lines:
#!/usr/bin/perl
use strict;
@@ -369,7 +369,7 @@
Exactly like C:
- for ($i=0; $i <= $max; $i++) {
+ for ($i = 0; $i <= $max; $i++) {
...
}
@@ -537,7 +537,7 @@
the meantime, here's a quick cheat sheet:
. a single character
- \s a whitespace character (space, tab, newline)
+ \s a whitespace character (space, tab, newline, ...)
\S non-whitespace character
\d a digit (0-9)
\D a non-digit