projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28ff973
)
Re: [perl #60022] Typo in perldata
author
Daniel Frederick Crisman
<daniel@crisman.org>
Thu, 23 Oct 2008 20:14:56 +0000
(16:14 -0400)
committer
Marcus Holland-Moritz
<mhx-perl@gmx.net>
Fri, 24 Oct 2008 15:58:53 +0000
(15:58 +0000)
Message-ID: <
20081024001456
.GA4137@fury.crisman.org>
Change from cardinal to ordinal numbering to avoid confusion.
p4raw-id: //depot/perl@34566
pod/perldata.pod
patch
|
blob
|
history
diff --git
a/pod/perldata.pod
b/pod/perldata.pod
index
4503e9d
..
b263609
100644
(file)
--- a/
pod/perldata.pod
+++ b/
pod/perldata.pod
@@
-674,7
+674,7
@@
name of the array (without the leading C<@>), then the subscript inside
square brackets. For example:
@myarray = (5, 50, 500, 5000);
- print "
Element Number 2
is", $myarray[2], "\n";
+ print "
The Third Element
is", $myarray[2], "\n";
The array indices start with 0. A negative subscript retrieves its
value from the end. In our example, C<$myarray[-1]> would have been