my $count = @array; # gets the array size my ($first) = @array # gets the first item