Variables
Variable Types
-
- Variable names consists of numbers, letters
and underscores, but they should not start with a number
- Perl is case sensitive, so $a and $A are
different.
- Data of any type may be stored within three basic types of variables
- Scalar
- Array
- Associative array (hash table)
- Variables are always preceded by a "dereferencing symbol" when either
assigning or fetching values
- The dereferencing symbol is what you use to tell Perl which kind of
variable type to use to hold your data