Chapter 4. Perl variables

Table of Contents
In this chapter...
What is a variable?
Variable names
Variable scoping and the strict pragma
Scalars
Double and single quotes
Arrays
Hashes
Special variables
Chapter summary

In this chapter...

In this section we will explore Perl's three main variable types --- scalars, arrays, and hashes --- and learn to assign values to them, retrieve the values stored in them, and manipulate them in certain ways.