Here document: Difference between revisions

m
→‎{{header|Raku}}: Fix link and comments: Perl 6 --> Raku
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
m (→‎{{header|Raku}}: Fix link and comments: Perl 6 --> Raku)
Line 1,346:
=={{header|Raku}}==
(formerly Perl 6)
Heredocs in Perl 6Raku use the <code>:to</code> modifier to a quoting operator,
such as <code>q</code> or <code>qq</code>.
The indentation of the end marker is removed from every line.
Line 1,385:
</pre>
 
Both q and qq are specialised forms of [http://design.perl6raku.org/S02.html#Q_forms Q] which comes with many adverbs. Here a heredoc that only interpolates @-sigils.
 
<lang perl6>my @a = <1 2 3 4>;
2,392

edits