summaryrefslogtreecommitdiff
path: root/pod/perlop.pod
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-10-14 18:26:56 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-10-14 18:26:56 +0000
commit62d10b704aa877d24f326d3b46b7eceb38549c98 (patch)
treebb7074cdb37f6d588b46e78111ad41208e7536f9 /pod/perlop.pod
parente85ca32baf0e7166244f1c18bf4a7bc84cbca758 (diff)
downloadperl-62d10b704aa877d24f326d3b46b7eceb38549c98.tar.gz
clarify significance of parens for "x" (from M.J.T. Guy
<mjtg@cus.cam.ac.uk>) p4raw-id: //depot/perl@4379
Diffstat (limited to 'pod/perlop.pod')
-rw-r--r--pod/perlop.pod9
1 files changed, 5 insertions, 4 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod
index e563888c9c..6e65ba35bd 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -195,10 +195,11 @@ to the modulus operator as implemented by your C compiler. This
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