On 8/3/05, Ivan Tubert-Brohman <[EMAIL PROTECTED]> wrote: > perldata says: > > "Version 5 of Perl changed the semantics of $[: files that don't set the > value of $[ no longer need to worry about whether another file changed > its value. (In other words, use of $[ is ***deprecated***.)"
In other words, in now (in perl 5) a pragma. > but perlvar says: > > "As of release 5 of Perl, assignment to $[ is treated as a compiler > directive, and cannot influence the behavior of any other file. (That's > why you can only assign compile-time constants to it.) Its use is highly > ***discouraged***." > > which give slightly different messages. And, certainly, changing $[ does > not result in deprecation warnings. perlvar is correct. > Should the wording of either of these documents change? Or should $[ > produce deprecation warnings? Or should we stop splitting hairs about > this and forget about it? ;-) $[ is a pain when you come across it in the perl internals. It's not deprecated yet, and I see no compelling reason to begin a deprecation cycle and introduce new warnings; but I'm not completely against it either.