in reply to Arrays: Last-index special variable vs. scalar values

something in your pepsi ... but to confuse you even more look at this:
$#array = 10;
yealds in @array having max index of 10 i.e. 11 elements