my @array = ('foo', 'bar', 'baz'); # $#array = 2 # because Perl's array indexes start at 0