> > 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.

Really old Perl documentation warns against doing this, but eventually
Larry made the range operator in list context when it was specifically
a foreach optimize to a lazy list internally when over some threshold
in size.

A quick scan of recent perldelta files doesn't turn up "range
operator" in this context, only in other things.
-- 
Bill
[EMAIL PROTECTED] [EMAIL PROTECTED]
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to