diff options
author | Karen Etheridge <ether@cpan.org> | 2021-08-20 16:58:28 -0700 |
---|---|---|
committer | Karen Etheridge <ether@cpan.org> | 2021-08-20 16:58:28 -0700 |
commit | 9d0a5a08d53f968c4545f9b245c683c1dc4bf907 (patch) | |
tree | c8d33d93c88112f95ba0b7bfb7665ec17c483c7a /pod | |
parent | 7be3852bb4aaa98aeccc41a8c182184bb59b0b25 (diff) | |
download | perl-9d0a5a08d53f968c4545f9b245c683c1dc4bf907.tar.gz |
collapse 3 whitespace to 2
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlsyn.pod | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod index 2957b0faf5..3e3a28f0f2 100644 --- a/pod/perlsyn.pod +++ b/pod/perlsyn.pod @@ -435,7 +435,7 @@ This is caused by the fact that a block by itself acts as a loop that executes once, see L</"Basic BLOCKs">. The form C<while/if BLOCK BLOCK>, available in Perl 4, is no longer -available. Replace any occurrence of C<if BLOCK> by C<if (do BLOCK)>. +available. Replace any occurrence of C<if BLOCK> by C<if (do BLOCK)>. =head2 For Loops X<for> X<foreach> @@ -534,11 +534,11 @@ X<alias> If any part of LIST is an array, C<foreach> will get very confused if you add or remove elements within the loop body, for example with -C<splice>. So don't do that. +C<splice>. So don't do that. X<splice> C<foreach> probably won't do what you expect if VAR is a tied or other -special variable. Don't do that either. +special variable. Don't do that either. As of Perl 5.22, there is an experimental variant of this loop that accepts a variable preceded by a backslash for VAR, in which case the items in the @@ -721,7 +721,7 @@ right), you can say to enable an experimental switch feature. This is loosely based on an old version of a Raku proposal, but it no longer resembles the Raku -construct. You also get the switch feature whenever you declare that your +construct. You also get the switch feature whenever you declare that your code prefers to run under a version of Perl between 5.10 and 5.34. For example: |