summaryrefslogtreecommitdiff
path: root/pod/perlintro.pod
diff options
context:
space:
mode:
authorAudrey Tang <cpan@audreyt.org>2001-10-19 09:45:51 +0800
committerAbhijit Menon-Sen <ams@wiw.org>2001-10-19 01:42:29 +0000
commit98fcdafd2e635d40117369e89e87427df39b6eff (patch)
treeb9548d34f3de748de6887bc8dbbbac6b814fbbb2 /pod/perlintro.pod
parent938db3fad98564dfc0759b508b5b58c33f0fa4c6 (diff)
downloadperl-98fcdafd2e635d40117369e89e87427df39b6eff.tar.gz
a small patch to perlintro.pod.
Message-Id: <20011019014551.A35625@not.autrijus.org> (Applied by hand with nits.) p4raw-id: //depot/perl@12499
Diffstat (limited to 'pod/perlintro.pod')
-rw-r--r--pod/perlintro.pod26
1 files changed, 13 insertions, 13 deletions
diff --git a/pod/perlintro.pod b/pod/perlintro.pod
index db30810685..23abd836c5 100644
--- a/pod/perlintro.pod
+++ b/pod/perlintro.pod
@@ -14,13 +14,13 @@ write your own simple scripts.
This introductory document does not aim to be complete. It does not
even aim to be entirely accurate. In some cases perfection has been
sacrificed in the goal of getting the general idea across. You are
-B<strongly> advised to follow this introduction with more information
+I<strongly> advised to follow this introduction with more information
from the full Perl manual, the table of contents to which can be found
in L<perltoc>.
Throughout this document you'll see references to other parts of the
Perl documentation. You can read that documentation using the C<perldoc>
-command or using whatever method you're using to read this document.
+command or whatever method you're using to read this document.
=head2 What is Perl?
@@ -29,12 +29,12 @@ text manipulation and now used for a wide range of tasks including
system administration, web development, network programming, GUI
development, and more.
-The language is intended to be practical (easy to use, efficient,
-complete) rather than beautiful (tiny, elegant, minimal). Its major
-features are that it's easy to use, supports both procedural and OO
-programming, has powerful built-in support for text processing, and
-has one of the world's most impressive collections of third-party
-modules.
+The language is intended to be practical (easy to use, efficient,
+complete) rather than beautiful (tiny, elegant, minimal). Its major
+features are that it's easy to use, supports both procedural and
+object-oriented (OO) programming, has powerful built-in support for text
+processing, and has one of the world's most impressive collections of
+third-party modules.
Different definitions of Perl are given in L<perl>, L<perlfaq1> and
no doubt other places. From this we can determine that Perl is different
@@ -61,8 +61,8 @@ Windows and MacOS, read L<perlrun>.
A Perl script or program consists of one or more statements. These
statements are simply written in the script in a straightforward
-fashion. There is no need to have a main() function or anything of that
-kind.
+fashion. There is no need to have a C<main()> function or anything of
+that kind.
Perl statements end in a semi-colon:
@@ -285,9 +285,9 @@ running the program. Using C<strict> is highly recommended.
=head2 Conditional and looping constructs
Perl has most of the usual conditional and looping constructs except for
-case/switch (but you can find a Switch module on CPAN, if you really
-want one -- see the section on modules, below, for more information
-about modules and CPAN).
+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).
The conditions can be any Perl expression. See the list of operators in
the next section for information on comparison and boolean logic operators,