Skip to content

Commit 453fbb3

Browse files
committed
perlop: Move trivial case to prominence
Otherwise this dangling sentence gets lost after the main part of the section.
1 parent dda9d6a commit 453fbb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pod/perlop.pod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,6 +1501,8 @@ X<operator, logical, or> X<operator, logical, xor>
15011501
X<operator, logical, exclusive or>
15021502
X<or> X<xor>
15031503

1504+
There is no low precedence operator for defined-OR.
1505+
15041506
Binary C<"or"> returns the logical disjunction of the two surrounding
15051507
expressions. It's equivalent to C<||> except for the very low precedence.
15061508
This makes it useful for control flow:
@@ -1528,7 +1530,6 @@ Then again, you could always use parentheses.
15281530
Binary C<"xor"> returns the exclusive-OR of the two surrounding expressions.
15291531
It cannot short-circuit (of course).
15301532

1531-
There is no low precedence operator for defined-OR.
15321533

15331534
=head2 C Operators Missing From Perl
15341535
X<operator, missing from perl> X<&> X<*>

0 commit comments

Comments
 (0)