X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/25b991bf8caa94f23a64f9568f5ceee69781aa25..6b8a2794cd62dd8d195b1d5c2699448cfd2be2c8:/pod/perlsyn.pod diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod index f90b8b3..3a65b4e 100644 --- a/pod/perlsyn.pod +++ b/pod/perlsyn.pod @@ -228,6 +228,9 @@ The following compound statements may be used to control flow: if (EXPR) BLOCK if (EXPR) BLOCK else BLOCK if (EXPR) BLOCK elsif (EXPR) BLOCK ... else BLOCK + unless (EXPR) BLOCK + unless (EXPR) BLOCK else BLOCK + unless (EXPR) BLOCK elsif (EXPR) BLOCK ... else BLOCK LABEL while (EXPR) BLOCK LABEL while (EXPR) BLOCK continue BLOCK LABEL until (EXPR) BLOCK @@ -252,7 +255,11 @@ all do the same thing: The C statement is straightforward. Because BLOCKs are always bounded by curly brackets, there is never any ambiguity about which C an C goes with. If you use C in place of C, -the sense of the test is reversed. +the sense of the test is reversed. Like C, C can be followed +by C. C can even be followed by one or more C +statements, though you may want to think twice before using that particular +language construct, as everyone reading your code will have to think at least +twice before they can understand what's going on. The C statement executes the block as long as the expression is L.