diff options
author | James E Keenan <jkeenan@cpan.org> | 2016-12-20 18:27:36 -0500 |
---|---|---|
committer | James E Keenan <jkeenan@cpan.org> | 2016-12-23 07:54:47 -0500 |
commit | c9e7382961164fbbd62ade71269b59a2cfcc26aa (patch) | |
tree | 6bc4e26cb0e79cf1ac0c3ce0ba3cd485e87a8bbc /pod/perlsyn.pod | |
parent | 4a49355342c9c82bb3d19edbf938addfe2f43639 (diff) | |
download | perl-c9e7382961164fbbd62ade71269b59a2cfcc26aa.tar.gz |
Clarify use of 'continue' keyword after 'given'.
For: RT #130324
Diffstat (limited to 'pod/perlsyn.pod')
-rw-r--r-- | pod/perlsyn.pod | 6 |
1 files 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 } |