# New Ticket Created by  Colin Kuskie 
# Please include the string:  [perl #44511]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=44511 >


repeat isn't an operator, it's a function in this context.
Describe what it does.

Index: examples/tutorial/21_string_ops_repeat.pir
===================================================================
--- examples/tutorial/21_string_ops_repeat.pir	(revision 20571)
+++ examples/tutorial/21_string_ops_repeat.pir	(working copy)
@@ -1,6 +1,7 @@
 =head1 String Operations (continued)
 
-PIR has a string repeat operation.
+PIR has a string repeat function, that concatenates a string
+with itself N times.
 
 =cut
 
@@ -9,7 +10,7 @@
     $S0 = "Hello "
     $S1 = repeat $S0, 3
 
-    say $S1
+    say $S1              #prints "Hello Hello Hello\n"
 
 .end
 

Reply via email to