Skip to content

Commit bfdfc9c

Browse files
committed
chg p6 to raku; chg '.perl' to '.raku'
1 parent 8f612b4 commit bfdfc9c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

doc/Language/operators.pod6

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ L<hash|/routine/hash> routine instead:
655655
The X<L<Array|/type/Array> constructor> returns an itemized L<Array|/type/Array> that does not flatten
656656
in list context. Check this:
657657
658-
say .perl for [3,2,[1,0]]; # OUTPUT: «3␤2␤$[1, 0]␤»
658+
say .raku for [3,2,[1,0]]; # OUTPUT: «3␤2␤$[1, 0]␤»
659659
660660
This array is itemized, in the sense that every element constitutes an item, as
661661
shown by the C<$> preceding the last element of the array, the
@@ -681,10 +681,10 @@ Universal interface for positional access to zero or more elements of a
681681
say @alphabet[*-1]; # OUTPUT: «z␤»
682682
say @alphabet[100]:exists; # OUTPUT: «False␤»
683683
say @alphabet[15, 4, 17, 11].join; # OUTPUT: «perl␤»
684-
say @alphabet[23 .. *].perl; # OUTPUT: «("x", "y", "z")␤»
684+
say @alphabet[23 .. *].raku; # OUTPUT: «("x", "y", "z")␤»
685685
686686
@alphabet[1, 2] = "B", "C";
687-
say @alphabet[0..3].perl # OUTPUT: «("a", "B", "C", "d")␤»
687+
say @alphabet[0..3].raku; # OUTPUT: «("a", "B", "C", "d")␤»
688688
689689
See L<Subscripts|/language/subscripts>, for a more detailed explanation of this
690690
operator's behavior and for how to implement support for it in custom types.
@@ -699,7 +699,7 @@ Universal interface for associative access to zero or more elements of a
699699
700700
my %color = kiwi => "green", banana => "yellow", cherry => "red";
701701
say %color{"banana"}; # OUTPUT: «yellow␤»
702-
say %color{"cherry", "kiwi"}.perl; # OUTPUT: «("red", "green")␤»
702+
say %color{"cherry", "kiwi"}.raku; # OUTPUT: «("red", "green")␤»
703703
say %color{"strawberry"}:exists; # OUTPUT: «False␤»
704704
705705
%color{"banana", "lime"} = "yellowish", "green";
@@ -720,10 +720,10 @@ it independent of the container type.
720720
=begin code
721721
use JSON::Tiny;
722722
723-
my $config = from-json('{ "files": 3, "path": "/home/perl6/perl6.pod6" }');
724-
say $config.perl; # OUTPUT: «${:files(3), :path("/home/perl6/perl6.pod6")}»
723+
my $config = from-json('{ "files": 3, "path": "/home/some-user/raku.pod6" }');
724+
say $config.raku; # OUTPUT: «${:files(3), :path("/home/some-user/raku.pod6")}»
725725
my %config-hash = $config<>;
726-
say %config-hash.perl; # OUTPUT: «{:files(3), :path("/home/perl6/perl6.pod6")}»
726+
say %config-hash.raku; # OUTPUT: «{:files(3), :path("/home/some-user/raku.pod6")}»
727727
=end code
728728
729729
It's a C<Hash> in both cases, and it can be used like that; however, in the
@@ -738,7 +738,7 @@ that quotes its argument using the same rules as the L«quote-words operator|
738738
739739
my %color = kiwi => "green", banana => "yellow", cherry => "red";
740740
say %color<banana>; # OUTPUT: «yellow␤»
741-
say %color<cherry kiwi>.perl; # OUTPUT: «("red", "green")␤»
741+
say %color<cherry kiwi>.raku; # OUTPUT: «("red", "green")␤»
742742
say %color<strawberry>:exists; # OUTPUT: «False␤»
743743
744744
Technically, not a real operator; it's syntactic sugar that's turned into the
@@ -753,7 +753,7 @@ of the same name.
753753
754754
my %color = kiwi => "green", banana => "yellow", cherry => "red";
755755
my $fruit = "kiwi";
756-
say %color«cherry "$fruit"».perl; # OUTPUT: «("red", "green")␤»
756+
say %color«cherry "$fruit"».raku; # OUTPUT: «("red", "green")␤»
757757
758758
Technically, not a real operator; it's syntactic sugar that's turned into the
759759
C<{ }> postcircumfix operator at compile-time.
@@ -1148,7 +1148,7 @@ Flattens objects of type L<Capture|/type/Capture>, L<Pair|/type/Pair>, L<List|/t
11481148
L<Hash|/type/Hash> into an argument list.
11491149
11501150
sub slurpee( |args ){
1151-
say args.perl
1151+
say args.raku
11521152
};
11531153
slurpee( <a b c d>, { e => 3 }, 'e' => 'f' => 33 )
11541154
# OUTPUT: «\(("a", "b", "c", "d"), {:e(3)}, :e(:f(33)))␤»
@@ -1618,7 +1618,7 @@ X<|Any junction operator>
16181618
Creates an I<any> L<Junction|/type/Junction> from its arguments.
16191619
16201620
my $three-letters = /<[a b c]>/ | /<[i j k]>/ | /<[x y z]>/;
1621-
say $three-letters.perl; # OUTPUT: «any(/<[a b c]>/, /<[i j k]>/, /<[x y z]>/)␤»
1621+
say $three-letters.raku; # OUTPUT: «any(/<[a b c]>/, /<[i j k]>/, /<[x y z]>/)␤»
16221622
say 'b' ~~ $three-letters; # OUTPUT: «True␤»
16231623
16241624
This first creates an C<any> C<Junction> of three regular expressions
@@ -2938,7 +2938,7 @@ Constructs a higher-order L<Cool|/type/Cool> from its arguments.
29382938
my @list = :god('Þor'), ['is',"mighty"];
29392939
say @list; # OUTPUT: «[god => Þor [is mighty]]␤»
29402940
my %hash = :god('Þor'), :is("mighty");
2941-
say %hash.perl; # OUTPUT: «{:god("Þor"), :is("mighty")}␤»
2941+
say %hash.raku; # OUTPUT: «{:god("Þor"), :is("mighty")}␤»
29422942
my %a = :11a, :22b;
29432943
say %(%a, :33x); # OUTPUT: «{a => 11, b => 22, x => 33}␤»
29442944
@@ -2982,7 +2982,7 @@ one of the operands runs out of elements prematurely, the zip operator will
29822982
stop.
29832983
29842984
=for code
2985-
say (1, 2 Z <a b c> Z <+ ->).perl;
2985+
say (1, 2 Z <a b c> Z <+ ->).raku;
29862986
# OUTPUT: «((1, "a", "+"), (2, "b", "-")).Seq␤»
29872987
for <a b c> Z <1 2 3 4> -> [$l, $r] {
29882988
say "$l:$r"

0 commit comments

Comments
 (0)