Anonymous Variables
sub someTrees {
my @threeTrees = qw(oak pine elm);
return \@threeTrees;
}
$treesRef = someTrees();
sub moreTrees {
["banyan", "beech"]; # anonymous
}
# both functions return references.
Previous slide
Back to first slide
View graphic version