From: chromatic Date: Mon, 19 Apr 2010 23:54:00 +0000 (-0400) Subject: Replace mention of Switch.pm with given/when X-Git-Tag: v5.13.0~7 X-Git-Url: https://perl5.git.perl.org/perl5.git/commitdiff_plain/e36877c8ad3e01c9da902459d29cc22046a60e16?ds=sidebyside Replace mention of Switch.pm with given/when --- 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 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/C). See +L 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,