in reply to RE: Re: Should I use $[ and $# ?
in thread Should I use $ and $# ?
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.
|
|---|