Message-ID: <
20081024001456.GA4137@fury.crisman.org>
Change from cardinal to ordinal numbering to avoid confusion.
p4raw-id: //depot/perl@34566
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