In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/c9e7382961164fbbd62ade71269b59a2cfcc26aa?hp=4a49355342c9c82bb3d19edbf938addfe2f43639>

- Log -----------------------------------------------------------------
commit c9e7382961164fbbd62ade71269b59a2cfcc26aa
Author: James E Keenan <[email protected]>
Date:   Tue Dec 20 18:27:36 2016 -0500

    Clarify use of 'continue' keyword after 'given'.
    
    For: RT #130324
-----------------------------------------------------------------------

Summary of changes:
 pod/perlsyn.pod | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod
index a5e075d9c2..a78c0959ad 100644
--- a/pod/perlsyn.pod
+++ b/pod/perlsyn.pod
@@ -638,8 +638,8 @@ Starting from Perl 5.16, one can prefix the switch
 keywords with C<CORE::> to access the feature without a C<use feature>
 statement.  The keywords C<given> and
 C<when> are analogous to C<switch> and
-C<case> in other languages, so the code in the previous section could be
-rewritten as
+C<case> in other languages -- though C<continue> is not -- so the code
+in the previous section could be rewritten as
 
     use v5.10.1;
     for ($var) {
@@ -1118,7 +1118,7 @@ a C<break>.
 =head3 Fall-through
 
 You can use the C<continue> keyword to fall through from one
-case to the next:
+case to the next immediate C<when> or C<default>:
 
     given($foo) {
         when (/x/) { say '$foo contains an x'; continue }

--
Perl5 Master Repository

Reply via email to