Repeat a string: Difference between revisions
Content added Content deleted
Underscore (talk | contribs) (Added Perl 6.) |
|||
Line 61: | Line 61: | ||
=={{header|Perl}}== |
=={{header|Perl}}== |
||
<lang perl>"ha" x 5</lang> |
<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}}== |
=={{header|PHP}}== |