Repeat a string: Difference between revisions
Content deleted Content added
Thundergnat (talk | contribs) m →{{header|Perl 6}}: Print to suppress "useless" warning |
|||
Line 1,473: | Line 1,473: | ||
=={{header|Perl 6}}== |
=={{header|Perl 6}}== |
||
<lang perl6>"ha" x 5</lang> |
<lang perl6>print "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>.) |
(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>.) |
||