Text Concatenation
[% a ~ b # infix text concatenation operator a ~ b ~ c; # chainable (note semi-colon to end expression) ~ a # ~ can be used as a "textify" prefix operator %]--EOF--look inside...
Thus Spake Andy:
We use ~
for text concatenation. This is what Perl 6 does (or at least it
was last time I looked). We can't use Perl 5's .
and _
as used in TT2
(and originally slated for Perl 6) is too hard to see. The ~
operator can
also be used as a prefix operator to implicitly textify the next item.