On Mon, May 14, 2012 at 04:34:28PM +0200, Abigail wrote: > On Mon, May 14, 2012 at 01:51:11PM +0100, David Cantrell wrote: > > On Mon, May 14, 2012 at 11:13:05AM +0200, Abigail wrote: > > > > > * Let's make where to count from a switch -- globally > > > * Perl (till it got removed from the language) > > > > Nope. From the manpage: > > > > " As of release 5 of Perl, assignment to $[ is treated as a compiler > > directive, and cannot influence the behavior of any other file. " > > > > So it was at least made a bit less stupid many years before being > > finally killed off. > > Of course, you're correct. Which probably meant that for the handful of > people that actually used $[, upgrading their Perl broke their programs > in mysterious ways.
$ perl -XE 'say $]; $[ = 1; say [a..c]->[2]' 5.016000 b -- Paul Johnson - p...@pjcj.net http://www.pjcj.net