Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: Array value changing for some reason

by jwkrahn (Abbot)
on Jan 01, 2019 at 02:23 UTC ( [id://1227856] : note . print w/replies, xml ) Need Help??


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