|
Date Published: 1999-11-01
by D. Jasmine Merced
TNS Group, Inc.
Review
Remember, this is a quick review of all we've discussed so far. Each of the 4 topics noted below
have already been covered comprehensively. If you're confused or don't understand anything that's
presented below, please refer to the relevant articles.
- Variables
Variables are simply, put data that can be changed. The variable comes in 2 parts: the name and the
value. The variable name always begins with a dollar sign ($). The value is typically enclosed in
single or double quote. There are strict guidelines for defining values. If you forgot what they are,
you can review our scalar discussion.
- Arrays
Arrays are lists of data. The array comes in 2 parts also: the name and the value, which is in a
list form. The array name typically begins with an "at" symbol (@). Each of the list items (values) are
enclosed in quote in a fashion similar to variables. There are strict guidelines for defining values. If you
forgot what they are, you can review our arrays
discussion.
- Hashes (Associative Arrays)
Hashes (associative arrays) are lists of lists. The most common hashes also come in 2 parts like
variables and arrays, hashes typically begin with a percent sign (%). Review the
hashes discussion.
- Subroutines
Subroutines are a line or lines of code that is enclosed in curly braces ({}) that performs specific
functions. Review the subroutines discussion
.
Previous: Conclusion Home *
Next: New Elements
D. Jasmine Merced is a partner in Tintagel
Net Solutions Group, Inc. and the administrator of The Perl Archive. She also serves as a Director of
the World Organization of Webmasters.
|