As of release 5 of Perl, assignment to $[ is treated as a compiler directive, and cannot influence the behavior of any other file. Its use is highly discouraged.So unless you fiddled with $[ yourself (which you shouldn't have in the first place), you can use 0 .. $#foo perfectly safely.
Makeshifts last the longest.
In reply to Re^3: Should I use $[ and $# ?
by Aristotle
in thread Should I use $ and $# ?
by Guildenstern
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |