in reply to what does $#AoA mean

$#a is the current last index of the array @a. See perldata.