Arrays and Hashes
Introduction to Perl Arrays
- A Array is simply a collection of scalar data
with a specified order.
- Arrays can be as short as zero elements (empty), or have as many
elements as system memory permits.
- An array element can store any legal scalar data.
- An array can be thought of as an ordered list of scalars.
- A particular scalar in an array is identified by an integer
index.
- Array indexes start at 0 (not 1).
- In Perl, the terms array and list mean
exactly the same thing.
Back to Syllabus
Previous: Output with Print
Next: Array Literals