CSE 341 -- S. Tanimoto                                                    Perl Arrays, Functions, Lists, Refs, Etc
10
Scalar Context
Scalar context is a calling situation in which a scalar is needed, as in an assignment to a scalar variable.
If the function being called normally returns a list, the last element of the list will be used as the scalar.
$scalar = (1, 2, 3); 
# Equivalent to $scalar = 3;