X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlop.pod;h=1550660df67785f127b347d07a7123940127ff97;hb=cc7ef057bab1579c0576d0a578186a6e5ae298e2;hp=6bc66d219efb08e62d03038563fbbc892a8951d1;hpb=df5f811689103091b7cb304529446ab7fbcb73af;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlop.pod b/pod/perlop.pod index 6bc66d2..1550660 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -418,10 +418,10 @@ Using "or" for assignment is unlikely to do what you want; see below. =head2 Range Operators Binary ".." is the range operator, which is really two different -operators depending on the context. In list context, it returns an +operators depending on the context. In list context, it returns a list of values counting (up by ones) from the left value to the right value. If the left value is greater than the right value then it -returns the empty array. The range operator is useful for writing +returns the empty list. The range operator is useful for writing C loops and for doing slice operations on arrays. In the current implementation, no temporary array is created when the range operator is used as the expression in C loops, but older