From: Yitzchak Scott-Thoennes Date: Tue, 24 May 2005 08:52:00 +0000 (-0700) Subject: Clarification on the behaviour of qw// and x : X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3585017fa3325abea83bccc0b2f2e0fc4d3231f3;p=p5sagit%2Fp5-mst-13.2.git Clarification on the behaviour of qw// and x : Subject: [PATCH] Re: [perl #35885] qw and x operators doesn't mix Message-ID: <20050524155200.GA1784@efn.org> p4raw-id: //depot/perl@24567 --- diff --git a/pod/perlop.pod b/pod/perlop.pod index f4e9c29..b86dda4 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -250,9 +250,9 @@ 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. If the right operand is zero or -negative, it returns an empty string or an empty list, depending on the -context. +parentheses or is a list formed by C, it repeats the list. +If the right operand is zero or negative, it returns an empty string +or an empty list, depending on the context. print '-' x 80; # print row of dashes