CSE 341 -- S. Tanimoto
Perl Arrays, Functions, Lists, Refs,
Etc
20
Anonymous Variables
sub someTrees {
my @threeTrees = qw(oak pine elm);
return \@threeTrees;
}
$treesRef = someTrees();
sub moreTrees {
["banyan", "beech"]; # anonymous
}
# both functions return references.