CSE 341 -- S. Tanimoto                                                    Perl Arrays, Functions, Lists, Refs, Etc
19
References (continued)
Local variables persist even if execution exits their scope if their reference count is greater than zero.
(I.e., local variables can have indefinite extent.)
References can be used for scalars, arrays, hashes, functions and other references.
$scalar  = "A Scalar";
$hash{"KEY"} = "A hash entry";
$scalarref = \$scalar;
$hashref   = \%hash;