Arrays
In Perl, arrays are data structures that hold lists.
@trees = ("Oak", "Maple", "Madrona");
@moretrees = qw(pine alter hemlock);
@ages = (75, 50.5, "twenty");
$mytree = $trees[1]; # "Maple"
Previous slide
Next slide
Back to first slide
View graphic version