summaryrefslogtreecommitdiff
path: root/pod/perlintro.pod
diff options
context:
space:
mode:
authorchromatic <chromatic@wgz.org>2010-04-19 19:54:00 -0400
committerDavid Golden <dagolden@cpan.org>2010-04-19 19:54:00 -0400
commite36877c8ad3e01c9da902459d29cc22046a60e16 (patch)
treefbd73bee40c9e419eeefb9361ac33b06604b53fb /pod/perlintro.pod
parent5b2081f5902f3987600de2bbbd173cbc06b5ac53 (diff)
downloadperl-e36877c8ad3e01c9da902459d29cc22046a60e16.tar.gz
Replace mention of Switch.pm with given/when
Diffstat (limited to 'pod/perlintro.pod')
-rw-r--r--pod/perlintro.pod7
1 files changed, 3 insertions, 4 deletions
diff --git a/pod/perlintro.pod b/pod/perlintro.pod
index 2f5f85eef2..c47274bc64 100644
--- a/pod/perlintro.pod
+++ b/pod/perlintro.pod
@@ -307,10 +307,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 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<given>/C<when>). See
+L<perlsyn/"Switch statements"> 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,