# Simple array constructs.
@fred = ("How", "are", "you", "today?");
print "\@fred contains (@fred).\n";
$mike = $fred;
print "$mike $fred\n";
# The array name in a scalar context gives the size.
$fredsize = @fred;
print '@fred has ', "$fredsize elements.\n";
# The $#name gives the max subscript (size less one).
print "Max sub is $#fred\n";
Variables whose names begin with
is an array, it is
different variable from
. However, members
are selected by
$#arrname gives the maximum
subscript of the array