In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/e36877c8ad3e01c9da902459d29cc22046a60e16?hp=5b2081f5902f3987600de2bbbd173cbc06b5ac53>
- Log ----------------------------------------------------------------- commit e36877c8ad3e01c9da902459d29cc22046a60e16 Author: chromatic <[email protected]> Date: Mon Apr 19 19:54:00 2010 -0400 Replace mention of Switch.pm with given/when ----------------------------------------------------------------------- Summary of changes: pod/perlintro.pod | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pod/perlintro.pod b/pod/perlintro.pod index 2f5f85e..c47274b 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, -- Perl5 Master Repository
