File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,14 +57,14 @@ rather than "(-2)**4)") is also true for Perl 6.
57
57
58
58
= head2 Symbolic Unary Operators
59
59
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,
61
61
respectively. C < ?^ > is used for bitwise logical negation, which the
62
62
documentation indicates is equivalent to C < ! > . It may be relevant to
63
63
note that these coerce their arguments to C < Bool > and C < Numeric > ,
64
64
respectively.
65
65
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.
68
68
69
69
C < + > I < does > have an effect in Perl 6, coercing its argument to to the
70
70
Numeric type.
@@ -73,7 +73,7 @@ Unary <\> is no more. If you really want to take a reference to an existing
73
73
named variable, you can use item context, like so: C < $aref = item(@array) >
74
74
You can get a reference to a named subroutine by using the C < & > sigil: C < $sref
75
75
= &foo > Anonymous arrays, hashes, and subs return their references during
76
- creation.
76
+ creation I < right away > .
77
77
78
78
= head2 Binding Operators
79
79
You can’t perform that action at this time.
0 commit comments