Arrays and Hashes
Array Variables
- Array variables store zero or more scalar values.
- Array variables begin with the @ character (as
opposed to the $ character for scalar variables).
- The scalar variable $blah and the array
variable @blah
are completely unrelated.
- Arrays that have never been assigned contain the empty list
()
- There are times when you will wish to operate on an entire array
at once, and times that you will want to operate on one scalar member
of a variable at a time. Both operations are possible and common.
Back to Syllabus
Previous: Array Variables
Next: Array Variable Assignment