X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlop.pod;h=04e1b48036e5f54201f71d276cae29c0245b79ff;hb=f49ed1dab8c52e58c3b45270b50ae23e7886790c;hp=f4e9c291ae63467ea3ebb060b2fa547b8d8457d7;hpb=d2a1eec3cd6825dde834f852934b2f286fab1f9f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlop.pod b/pod/perlop.pod index f4e9c29..04e1b48 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 @@ -1987,7 +1987,8 @@ depending on context. This distinction is determined on syntactic grounds alone. That means C<< <$x> >> is always a readline() from an indirect handle, but C<< <$hash{key}> >> is always a glob(). That's because $x is a simple scalar variable, but C<$hash{key}> is -not--it's a hash element. +not--it's a hash element. Even C<< <$x > >> (note the extra space) +is treated as C, not C. One level of double-quote interpretation is done first, but you can't say C<< <$foo> >> because that's an indirect filehandle as explained