File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,8 +101,8 @@ multi foo (1/3) { say "It's one third!" }
101
101
# Right, a Rat literal:
102
102
multi foo (<1/3>) { say "It's one third!" }
103
103
104
- If you I < do > want an allomorph and not a literal L < Numeric > ,
105
- then include whitespace around angle brackets:
104
+ If you I < do > want an allomorph and not a literal L < Numeric > , then include
105
+ whitespace around angle brackets:
106
106
107
107
say <42/1>.^name; # OUTPUT: «Rat»
108
108
say <42+0i>.^name; # OUTPUT: «Complex»
@@ -1072,7 +1072,7 @@ The value of variables is interpolated into strings by simply inserting that var
1072
1072
my $polation="polation";
1073
1073
say "inter$polation";# OUTPUT: «interpolation»
1074
1074
1075
- This might need curly brackets in case it precedes some alphanumeric characters
1075
+ This might need curly braces in case it precedes some alphanumeric characters
1076
1076
1077
1077
my $inter="inter";
1078
1078
say "{$inter}polation"; # OUTPUT: «interpolation»
You can’t perform that action at this time.
0 commit comments