File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -315,12 +315,17 @@ sub compilation-failure (355/113) {}
315
315
The C < qw > form of word quoting will treat quote characters literally, leaving
316
316
them in the resulting words:
317
317
318
- say qw{"a b" c}.perl ; # OUTPUT: «("\"a", "b\"", "c")»
318
+ say qw{"a b" c}.raku ; # OUTPUT: «("\"a", "b\"", "c")»
319
319
320
320
Thus, if you wish to preserve quoted sub-strings as single items in the resulting words
321
321
you need to use the C < qww > variant:
322
322
323
- say qww{"a b" c}.perl; # OUTPUT: «("a b", "c")»
323
+ say qww{"a b" c}.raku; # OUTPUT: «("a b", "c")»
324
+
325
+ Other kind of quotes are also supported
326
+
327
+ say qww{ ’this and that’ “here or there” 「infinity and beyond」 }.raku;
328
+ # OUTPUT: «("this and that", "here or there", "infinity and beyond")»
324
329
325
330
= head2 X < Word quoting with interpolation: qqw|quote,qqw >
326
331
You can’t perform that action at this time.
0 commit comments