my $third_element = $arrayref->[2];