in reply to Re: deleting all the elements of an array
in thread deleting all the elements of an array
What you said works, but what you said for why it works
doesn't. More specifically, what you assign to $#array
is off by 1 from how many elements you leave in it.