Skip to content

Commit fcfa134

Browse files
committed
Provide a simpler example for reversed operators
Reversed operators are taught before operator reduction, so give an example that does not depend on operator reduction
1 parent e9483ab commit fcfa134

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/Language/operators.pod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ There are shortcuts for C<!==> and C<!eq>, namely C<!=> and C<ne>.
163163
Any infix operator may be called with its two arguments reversed by prefixing
164164
with C<R>. Associativity of operands is reversed as well.
165165
166+
say 4 R/ 12; # 3
166167
say [R/] 2, 4, 16; # 2
167168
168169
=head2 Hyper Operators

0 commit comments

Comments
 (0)