@@ -2099,10 +2099,10 @@ my %loser = points => 20, misses => 10;
2099
2099
= head1 Conditional operator precedence
2100
2100
2101
2101
X < |operator,ternary >
2102
- X < |operator,conditional > .
2102
+ X < |operator,conditional >
2103
2103
= head2 infix C < ?? !! >
2104
2104
2105
- Also called I < ternary > or I < conditional > operator. C < $condition ?? $true !!
2105
+ Also called I < ternary > or I < conditional > operator, C < $condition ?? $true !!
2106
2106
$false > evaluates C < $condition > and returns the expression right behind ??,
2107
2107
in this case C < $true > if it is C < True > , otherwise evaluates and returns
2108
2108
the expression behind !!, C < $false > in this case.
@@ -2112,12 +2112,10 @@ X<|operator,flipflop>
2112
2112
2113
2113
sub infix:<ff>(Mu $a, Mu $b)
2114
2114
2115
- Also called the I < flipflop operator > .
2116
-
2117
- Compares both arguments to C < $_ > (that is, C < $_ ~~ $a > and C < $_ ~~ $b > ).
2118
- Evaluates to C < False > until the left-hand smartmatch is C < True > , at
2119
- which point it evaluates to C < True > until the right-hand smartmatch is
2120
- C < True > .
2115
+ Also called the I < flipflop operator > , compares both arguments to C < $_ > (that is,
2116
+ C < $_ ~~ $a > and C < $_ ~~ $b > ). Evaluates to C < False > until the left-hand
2117
+ smartmatch is C < True > , at which point it evaluates to C < True > until the
2118
+ right-hand smartmatch is C < True > .
2121
2119
2122
2120
In effect, the left-hand argument is the "start" condition and the
2123
2121
right-hand is the "stop" condition. This construct is typically used to
@@ -2136,7 +2134,6 @@ END
2136
2134
my @codelines = gather for $excerpt.lines {
2137
2135
take $_ if B < "=begin code" ff "=end code" >
2138
2136
}
2139
-
2140
2137
# this will print four lines, starting with "=begin code" and ending with
2141
2138
# "=end code"
2142
2139
say @codelines.join("\n");
@@ -2157,7 +2154,7 @@ condition, C<*> can be used as such.
2157
2154
say $_ if /C/ ff *; # OUTPUT: «CDE»
2158
2155
}
2159
2156
2160
- For the sed-like version, which does I < not > try C < $_ > on the stop
2157
+ For the C < sed > -like version, which does I < not > try C < $_ > on the stop
2161
2158
condition after succeeding on the start condition, see L < C < fff > > .
2162
2159
2163
2160
This operator cannot be overloaded, as it's handled specially by the
@@ -2251,7 +2248,8 @@ This operator cannot be overloaded, as it's handled specially by the compiler.
2251
2248
2252
2249
sub infix:<fff^>(Mu $a, Mu $b)
2253
2250
2254
- Like L < C < fff > > , except it does not return true for matches to the right argument.
2251
+ Like L < C < fff > > , except it does not return true for matches to the right
2252
+ argument.
2255
2253
2256
2254
my @list = <A B C>;
2257
2255
say $_ if /A/ fff /C/ for @list; # OUTPUT: «ABC»
0 commit comments