X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlintro.pod;h=c47274bc6466f8da7df6092bfd6923126f32bbdc;hb=d4438f940607d4d475fcd9312e68e0c99c6c6d8b;hp=210890f52fa5f82ecf45726318561783c9572436;hpb=d699aa5b29732a7458b7dc824a0b5c53a9854d4f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlintro.pod b/pod/perlintro.pod index 210890f..c47274b 100644 --- a/pod/perlintro.pod +++ b/pod/perlintro.pod @@ -188,7 +188,7 @@ of elements in the array: if (@animals < 5) { ... } The elements we're getting from the array start with a C<$> because -we're getting just a single value out of the array -- you ask for a scalar, +we're getting just a single value out of the array; you ask for a scalar, you get a scalar. To get multiple values from an array: @@ -302,15 +302,14 @@ 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 -Perl has most of the usual conditional and looping constructs except for -case/switch (but if you really want it, there is a Switch module in Perl -5.8 and newer, and on CPAN. See the section on modules, below, for more -information about modules and CPAN). +Perl has most of the usual conditional and looping constructs. As of Perl +5.10, it even has a case/switch statement (spelled C/C). See +L for more details. The conditions can be any Perl expression. See the list of operators in the next section for information on comparison and boolean logic operators, @@ -443,7 +442,7 @@ before 99). ! not (C, C and C aren't just in the above table as descriptions -of the operators -- they're also supported as operators in their own +of the operators. They're also supported as operators in their own right. They're more readable than the C-style operators, but have different precedence to C<&&> and friends. Check L for more detail.) @@ -659,7 +658,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