Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[S03] When a chain of ^^s gets only false arguments, return the last …
…one.
  • Loading branch information
Kodi Arfer authored and Kodi Arfer committed Jan 24, 2011
1 parent 308c599 commit a6a03fb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions S03-operators.pod
Expand Up @@ -1334,10 +1334,11 @@ C<< infix:<^^> >>, short-circuit exclusive-or

$a ^^ $b ^^ $c ...

Returns the true argument if there is one (and only one). Returns
C<Bool::False> if all arguments are false or if more than one argument
is true. In list context forces a false return to mean C<()>.
See C<xor> below for low-precedence version.
Returns the true argument if there is one (and only one). Returns the
last argument if all arguments are false. Returns C<Bool::False>
otherwise (when more than one argument is true). In list context
forces a false return to mean C<()>. See C<xor> below for
low-precedence version.

This operator short-circuits in the sense that it does not evaluate
any arguments after a 2nd true result. Closely related is the reduce
Expand Down

0 comments on commit a6a03fb

Please sign in to comment.