Skip to content

Commit fb0bea5

Browse files
committed
add Q adverb table
1 parent a713d52 commit fb0bea5

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

doc/Language/quoting.pod6

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,25 @@ These examples produce:
5353
This is still a closing curly brace → \
5454
=end code
5555
56-
The other quote forms add to this basic functionality:
56+
The behaviour of quoting constructs can be modified with adverbs, as explained
57+
in detail in later sections.
58+
59+
=begin table
60+
Short Long Meaning
61+
62+
:x :exec Execute as command and return results
63+
:w :words Split result on words (no quote protection)
64+
65+
:qq :double Interpolate with :s, :a, :h, :f, :c, :b
66+
:s :scalar Interpolate $ vars
67+
:a :array Interpolate @ vars
68+
:h :hash Interpolate % vars
69+
70+
:f :function Interpolate & calls
71+
:c :closure Interpolate {...} expressions
72+
:b :backslash Interpolate \n, \t, etc. (implies :q at least)
73+
:to :heredoc Parse result as heredoc terminator
74+
=end table
5775
5876
=head2 X<Escaping: q|quote,q;quote,' '>
5977

0 commit comments

Comments
 (0)