Skip to content

Commit 21c1708

Browse files
authored
Small corrections.
And the note about the complement is redundant and is out of place anyway.
1 parent 0a33561 commit 21c1708

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Language/5to6-perlop.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ rather than "(-2)**4)") is also true for Perl 6.
5757
5858
=head2 Symbolic Unary Operators
5959
60-
As in Perl 5, unary C<!> and C<-> do logical arithmetic negation,
60+
As in Perl 5, unary C<!> and C<-> do logical and arithmetic negation,
6161
respectively. C<?^> is used for bitwise logical negation, which the
6262
documentation indicates is equivalent to C<!>. It may be relevant to
6363
note that these coerce their arguments to C<Bool> and C<Numeric>,
6464
respectively.
6565
66-
Unary C<~> is the string context operator in Perl 6, so use prefix C<+^>
67-
for bitwise integer negation. Assumes two's complement.
66+
Unary C<~> is the string concatenation operator in Perl 6, so use prefix C<+^>
67+
for bitwise integer negation.
6868
6969
C<+> I<does> have an effect in Perl 6, coercing its argument to to the
7070
Numeric type.
@@ -73,7 +73,7 @@ Unary <\> is no more. If you really want to take a reference to an existing
7373
named variable, you can use item context, like so: C<$aref = item(@array)>
7474
You can get a reference to a named subroutine by using the C<&> sigil: C<$sref
7575
= &foo> Anonymous arrays, hashes, and subs return their references during
76-
creation.
76+
creation I<right away>.
7777
7878
=head2 Binding Operators
7979

0 commit comments

Comments
 (0)