my $arrayref = [10,11,12,13,14,15]; print "Last Index is: " . $#$arrayref . "\n"; print "Count of arraay is: " . scalar(@$arrayref) . "\n";