Repeat a string: Difference between revisions
Added Perl 6.
Underscore (talk | contribs) (Added Perl 6.) |
|||
Line 61:
=={{header|Perl}}==
<lang perl>"ha" x 5</lang>
=={{header|Perl 6}}==
{{works with|Rakudo|#21 "Seattle"}}
<lang perl6>"ha" x 5</lang>
(Note that the <code>x</code> operator isn't quite the same as in Perl 5: it now only creates strings. To create lists, use <code>xx</code>.)
=={{header|PHP}}==
|