in reply to Re: nested for loop with assumed scalars
in thread nested for loop with assumed scalars
I don't understand what do you mean by "problems with $#array". It would still be the index of the last item as defined:
but of course I agree it's not a good idea to fiddle with $[.$[ = 3; @a = (1,2,3,4,5); print $a[$#a];
Jenda
Always code as if the guy who ends up maintaining your code
will be a violent psychopath who knows where you live.
-- Rick Osborne
|
|---|