On Thu, 2006-09-21 at 08:08 -0400, Bill Ricker wrote: > > > Note : This 0..$#array would have been INefficient for big array back > > > before for(0..$N) was optimized with a lazy list. > > > When exactly did that happen? > > Long enough ago that if you find a Perl on which > perl -le " foreach (0..100_000_000) { print } " | more > has a seg or heap fault immediately, you've got a disturbingly old Perl.
I just checked some old sources -- the optimization first appeared in 5.005. -- Jeremy _______________________________________________ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm