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 @@ -104,7 +104,7 @@ which is used to indicate they are Associative.
104
104
105
105
Hash and map elements are accessed by key via the C < { } > postcircumfix operator:
106
106
107
- say %*ENV{'HOME', 'PATH'}.perl ;
107
+ say %*ENV{'HOME', 'PATH'}.raku ;
108
108
# OUTPUT: «("/home/camelia", "/usr/bin:/sbin:/bin")»
109
109
110
110
The general L < Subscript|/language/subscripts > rules apply providing shortcuts
@@ -272,8 +272,8 @@ Only use curly braces for creating Blocks.
272
272
273
273
You can assign to multiple keys at the same time with a slice.
274
274
275
- my %h; %h<a b c> = 2 xx *; %h.perl .say; # OUTPUT: «{:a(2), :b(2), :c(2)}»
276
- my %h; %h<a b c> = ^3; %h.perl .say; # OUTPUT: «{:a(0), :b(1), :c(2)}»
275
+ my %h; %h<a b c> = 2 xx *; %h.raku .say; # OUTPUT: «{:a(2), :b(2), :c(2)}»
276
+ my %h; %h<a b c> = ^3; %h.raku .say; # OUTPUT: «{:a(0), :b(1), :c(2)}»
277
277
278
278
X < |non-string keys >
279
279
X < |object hash >
You can’t perform that action at this time.
0 commit comments