CSE 341 -- S. Tanimoto
Perl Arrays, Functions,
Lists, Refs, Etc
List Context
List
context is a calling situation in which a list is needed, as in an assignment to an array.
If the function being called normally returns a
scalar, the scalar will be
converted to a list of one element.
# List context:
@list = 5; # Equivalent to $list[0] = 5;