The only place where I would frown on a
$#array would be in the
+ 1 context where
@array might be more appropriate. It depends on the semantics -
for 0 .. $#array is, at least for me, the best way how to iterate over indices, when iterating over the members themselves is not possible.