X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlintro.pod;h=7429dfb233e61c6e1d0d99b6d5b1c6d4cdd71c1c;hb=eda6e075b0c0944056eda3d4a7d8ace8624d5b26;hp=8a80ef4cee951dfb6cd2a1ea9631a02ea13b5c76;hpb=9086c8821bf0aa9a6a023f1060a08cdd15a45d40;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlintro.pod b/pod/perlintro.pod index 8a80ef4..7429dfb 100644 --- a/pod/perlintro.pod +++ b/pod/perlintro.pod @@ -55,7 +55,7 @@ Alternatively, put this as the first line of your script: to be executable first, so C (under Unix). For more information, including instructions for other platforms such as -Windows and MacOS, read L. +Windows and Mac OS, read L. =head2 Basic syntax overview @@ -169,7 +169,7 @@ 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, you get a scalar. -To get multiple values from a array: +To get multiple values from an array: @animals[0,1]; # gives ("camel", "llama"); @animals[0..2]; # gives ("camel", "llama", "owl"); @@ -311,7 +311,7 @@ There's also a negated version of it: ... } -This is provided as a more readable version of C. +This is provided as a more readable version of C)>. Note that the braces are required in Perl, even if you've only got one line in the block. However, there is a clever way of making your one-line @@ -351,7 +351,7 @@ Exactly like C: } The C style for loop is rarely needed in Perl since Perl provides -the the more friendly list scanning C loop. +the more friendly list scanning C loop. =item foreach @@ -374,7 +374,7 @@ this overview) see L. Perl comes with a wide selection of builtin functions. Some of the ones we've already seen include C, C and C. A list of them is given at the start of L and you can easily read -about any given function by using C. +about any given function by using C>. Perl operators are documented in full in L, but here are a few of the most common ones: @@ -616,7 +616,7 @@ in using third-party modules, which are documented below. =head2 Using Perl modules Perl modules provide a range of features to help you avoid reinventing -the wheel, and can be downloaded from CPAN (http://www.cpan.org). A +the wheel, and can be downloaded from CPAN ( http://www.cpan.org/ ). A number of popular modules are included with the Perl distribution itself. @@ -627,9 +627,9 @@ also available from CPAN. To learn how to install modules you download from CPAN, read L -To learn how to use a particular module, use C. -Typically you will want to C, which will then give you -access to exported functions or an OO interface to the module. +To learn how to use a particular module, use C>. +Typically you will want to C>, which will then give +you access to exported functions or an OO interface to the module. L contains questions and answers related to many common tasks, and often provides suggestions for good CPAN modules to use.