diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1998-11-29 15:40:42 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1998-11-29 15:40:42 +0000 |
commit | a91c35b0b764ca1a209a514dd10682aecec1e2c8 (patch) | |
tree | 781d76682f31fa47f78f24408aad193bb06ea29d /pod | |
parent | aa2401440200f95c6f97edeae40977a0d02d3916 (diff) | |
download | perl-a91c35b0b764ca1a209a514dd10682aecec1e2c8.tar.gz |
Tune the "if" entry.
p4raw-id: //depot/cfgperl@2386
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlfunc.pod | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 370353bb2a..7900fb57fc 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -1901,8 +1901,11 @@ Enter BLOCKs conditionally. The first EXPR to return true causes the corresponding BLOCK to be entered, or, in the case of C<else>, the fall-through default BLOCK. -Take notice: Perl wants BLOCKS, expressions (like e.g. in C, C++, or -Pascal) won't do. +Note 1: Perl wants BLOCKS, expressions won't do (like they do +e.g. in C, C++, Java, Pascal). + +Note 2: It's C<elsif>, not C<elseif>. You can have as many +C<elsif>s as you want. See L<perlsyn> for more details. See also C<unless>. |