This is to document the fact that, as in POSIX shell, you can use
multiple HEREDOC strings in the same line.

---
 doc/Language/quoting.pod6 | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/doc/Language/quoting.pod6 b/doc/Language/quoting.pod6
index f7fe658..393807b 100644
--- a/doc/Language/quoting.pod6
+++ b/doc/Language/quoting.pod6
@@ -386,6 +386,20 @@ would produce:
       file "db.7.3.8";
   };
 
+You can begin multiple Heredocs in the same line.
+
+=begin code
+my ($first, $second) = qq:to/END1/, qq:to/END2/;
+  FIRST
+  MULTILINE
+  STRING
+  END1
+   SECOND
+   MULTILINE
+   STRING
+   END2
+=end code
+
 =head1 Regexes
 
 For information about quoting as applied in regexes see the L<regular
-- 
2.9.3

Reply via email to