This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Replace mention of Switch.pm with given/when
authorchromatic <chromatic@wgz.org>
Mon, 19 Apr 2010 23:54:00 +0000 (19:54 -0400)
committerDavid Golden <dagolden@cpan.org>
Mon, 19 Apr 2010 23:54:00 +0000 (19:54 -0400)
pod/perlintro.pod

index 2f5f85e..c47274b 100644 (file)
@@ -307,10 +307,9 @@ running the program.  Using C<strict> is highly recommended.
 
 =head2 Conditional and looping constructs
 
 
 =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,
 
 The conditions can be any Perl expression.  See the list of operators in
 the next section for information on comparison and boolean logic operators,