next up previous
Next: Scalar Variables Up: Basic Perl Programming Previous: Basic Perl Programming

Perl Variables

Perl regards variables as being of one of three basic types:

Scalar
-- denoted by a $ symbol prefix. A scalar variable can be either a number or a string.
Array
-- denoted by a @ symbol prefix. Arrays are indexed by numbers.
Associative Array
-- denoted by a % symbol prefix. Arrays are indexed by strings. You can look up items by name.

Note: This is quite different than Pascal. But Hopefully this makes things easier.



Dave Marshall
9/28/2001