If you don't want to mess with $[, install a recent version of perl, where $[ has a lexical effect, like the integer, locale, warning, strict pragmas. (That could still cause problems if someone depends heavily on the old behaiviour of $[.)
In reply to Re^2: (digression) preferred syntax for index of last array element?
by ambrus
in thread Initialization of arrays
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |