Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PATCH] "x" operator documentation clarification/correction #717

Closed
p5pRT opened this issue Oct 14, 1999 · 1 comment
Closed

[PATCH] "x" operator documentation clarification/correction #717

p5pRT opened this issue Oct 14, 1999 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Oct 14, 1999

Migrated from rt.perl.org#1619 (status was 'resolved')

Searchable as RT1619$

@p5pRT
Copy link
Author

p5pRT commented Oct 14, 1999

From mjtg@cus.cam.ac.uk

Mike Guy

Inline Patch
--- ./pod/perlop.pod.orig	Tue May 11 18:51:08 1999
+++ ./pod/perlop.pod	Thu Oct 14 18:49:10 1999
@@ -193,10 +193,11 @@
 operator is not as well defined for negative operands, but it will
 execute faster.
 
-Binary "x" is the repetition operator.  In scalar context, it
-returns a string consisting of the left operand repeated the number of
-times specified by the right operand.  In list context, if the left
-operand is a list in parentheses, it repeats the list.
+Binary "x" is the repetition operator.  In scalar context or if the left
+operand is not enclosed in parentheses, it returns a string consisting
+of the left operand repeated the number of times specified by the right
+operand.  In list context, if the left operand is enclosed in
+parentheses, it repeats the list.
 
     print '-' x 80;		# print row of dashes
 

End of patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant