X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlintro.pod;h=9973fd62c1b3120c8134766ab2707e105cf17be7;hb=6fa4d285bff5644bebb95aff09143322042282cc;hp=201ebea8919857d875032033af6bc66af4023918;hpb=51370f994fa2a68d90998bb11cbc8cac0e73cad2;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlintro.pod b/pod/perlintro.pod index 201ebea..9973fd6 100644 --- a/pod/perlintro.pod +++ b/pod/perlintro.pod @@ -63,7 +63,7 @@ Windows and Mac OS, read L. =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; @@ -302,7 +302,7 @@ are defined. Using C in combination with a C at the top of your Perl scripts means that the interpreter will pick up certain common programming errors. For instance, in the example above, the final -C would cause a compile-time error and prevent you from +C would cause a compile-time error and prevent you from running the program. Using C is highly recommended. =head2 Conditional and looping constructs @@ -369,7 +369,7 @@ You can also use C in a post-condition: Exactly like C: - for ($i=0; $i <= $max; $i++) { + for ($i = 0; $i <= $max; $i++) { ... } @@ -537,7 +537,7 @@ expressions. These are documented at great length in L, but for 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 @@ -659,7 +659,7 @@ to database integration to graphics. A categorized list of modules is also available from CPAN. To learn how to install modules you download from CPAN, read -L +L. To learn how to use a particular module, use C>. Typically you will want to C>, which will then give