You need another $ charcter
print "Idx last Elmnt=$#{ $AoAref }\n"; # ^
$#{ ... } says "Give me the highest index of the array who's reference is contained between the curlies".
So you need to add the variable that holds the reference, in this case $AoAref.
In reply to Re: Finding length of array from refrence
by BrowserUk
in thread Finding length of array from refrence
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |