Skip to content

Commit af0228e

Browse files
committed
add a few operators to the index
1 parent e15bc8f commit af0228e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/Language/operators.pod

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,8 @@ The operator for calling one method, C<$invocant.method>.X<|method call>
500500
501501
Technically this is not an operator, but syntax special-cased in the compiler.
502502
503-
=head2 postfix X<C«.&»>
503+
X«|postfix .&»
504+
=head2 postfix C«.&»
504505
505506
The operator to call a subroutine (with at least one positional argument) like
506507
a method. The invocant will be bound to the first positional argument.
@@ -521,6 +522,7 @@ C<$invocant = $invocant.method>, similar to L<C<=>>.
521522
522523
Technically this is not an operator, but syntax special-cased in the compiler.
523524
525+
X«|postfix .^»
524526
=head2 postfix C«.^»
525527
526528
A X<meta-method call>. C<$invocant.^method> calls C<method> on C<$invocant>'s
@@ -529,20 +531,23 @@ for more information.
529531
530532
Technically this is not an operator, but syntax special-cased in the compiler.
531533
534+
X«|postfix .?»
532535
=head2 postfix C«.?»
533536
534537
X<Potential method call>s. C<$invocant.?method> calls method C<method> on
535538
C<$invocant> if it has a method of such name. Otherwise it returns L<Nil>.
536539
537540
Technically this is not an operator, but syntax special-cased in the compiler.
538541
542+
X«|postfix .+»
539543
=head2 postfix C«.+»
540544
541545
C<$invocant.+method> calls all methods called C<method> from C<$invocant>,
542546
and returns a L<List> of the results. Dies if no such method was found.
543547
544548
Technically this is not an operator, but syntax special-cased in the compiler.
545549
550+
X«|postfix .*»
546551
=head2 postfix C«.*»
547552
548553
C<$invocant.*method> calls all methods called C<method> from C<$invocant>,
@@ -551,6 +556,7 @@ L<List> is returned.
551556
552557
Technically this is not an operator, but syntax special-cased in the compiler.
553558
559+
X<|postfix ».>
554560
=head2 postfix C<».> / postfix C«>>.»
555561
556562
X<Hyper method call operator>. Will call a method on all elements of a C<List> out of order and return the list of return values in order.

0 commit comments

Comments
 (0)