Skip to content

Commit e7200ea

Browse files
committed
doc & and subscripts in quoting constructs
1 parent 712b0c6 commit e7200ea

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/Language/quoting.pod6

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,17 @@ say "@neighborsB<.L<join>(', ')> and I try our best to coexist peacefully."
117117
118118
However, C<"@example.com"> produces C<@example.com>.
119119
120+
To call a subroutine use the C<&>-sigil.
121+
122+
say "abc&uc("def")ghi";
123+
# OUTPUT«abcDEFghi␤»
124+
125+
Postcircumfix operators and therefore L<subscripts|/language/subscripts> are
126+
interpolated as well.
127+
128+
my %h = :1st; say "abc%h<st>ghi";
129+
OUTPUT«abc1ghi␤»
130+
120131
=head2 Word quoting: qw
121132
X<|qw word quote>X«|< > word quote»
122133

0 commit comments

Comments
 (0)