in reply to Re^3: Array value changing for some reason
in thread Array value changing for some reason

$#array is the index of the last element of @array. Which is the same as the scalar(@array)-1;

Depending on which version of perl and the value of $[.     :)

  • Comment on Re^4: Array value changing for some reason