diff options
author | Steve Grazzini <grazz@pobox.com> | 2003-06-05 21:42:59 -0400 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-06-09 19:13:16 +0000 |
commit | fb53bbb20d623d0dbe701aa5d8875b725debcd99 (patch) | |
tree | 4169f41ef0f86eb556d3e59f5a67d2f03e78a8ae /pod/perlop.pod | |
parent | b8d10bc1834937e1787fda13c581aeed3260e660 (diff) | |
download | perl-fb53bbb20d623d0dbe701aa5d8875b725debcd99.tar.gz |
Re: nitpick with \(0..2)
Message-ID: <20030606054259.GA30249@grazzini.net>
p4raw-id: //depot/perl@19729
Diffstat (limited to 'pod/perlop.pod')
-rw-r--r-- | pod/perlop.pod | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod index 6bc66d219e..1550660df6 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<foreach (1..10)> 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<foreach> loops, but older |