We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
q
1 parent 9622e68 commit 8fd3ee1Copy full SHA for 8fd3ee1
doc/Language/quoting.pod6
@@ -117,6 +117,15 @@ There are no backslashes here, only lots of $$$!
117
No $interpolation {here}!
118
Just a literal "\n" here
119
120
+The C<\qq[...]> escape sequence enables
121
+L«C<qq> interpolation|/language/quoting#Interpolation:_qq» for a portion
122
+of the string. Using this escape sequence is handy when you have HTML markup
123
+in your strings, to avoid interpretation of angle brackets as hash keys:
124
+
125
+ my $var = 'foo';
126
+ say '<code>$var</code> is <var>\qq[$var.uc()]</var>';
127
+ # OUTPUT: «<code>$var</code> is <var>FOO</var>»
128
129
=head2 X<Interpolation: qq|quote,qq;quote," ">
130
131
=begin code :allow<B L> :skip-test
0 commit comments