An observation:
Juerd was just arguing against this syntax here today. I don't know what he means by: "$#foo + 1 isn't necessarily equal to @foo"(Some Perl array nuance I am not familiar with) but I tend to agree with him that using the more direct syntax:
print "index of last element: $#A";
is easier to understand and you don't have to leave future maintainers of your code guessing.
Thanks
In reply to Re: Answer: How do I find the index of the last element in an array?
by pzbagel
in thread How do I find the index of the last element in an array?
by vroom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |