in reply to Re: Large file problem
in thread Large file problem

Thanks for the further clarification. Although I know "while" is what I meant (when's Perl going to have DWIM?), it's good to also understand how Perl was responding to exactly what I was telling it to do. All is made clear now. Thank you!

Replies are listed 'Best First'.
Re^3: Large file problem
by ikegami (Patriarch) on Dec 01, 2004 at 18:21 UTC
    when's Perl going to have DWIM?

    Lists will be evaluated lazily in Perl 6, which means Perl 6 will DWYM in this circumstance (I think!)

      I heard perl 5.10 will also have this long overdue optimization. foreach (1..1000000) was optimized in perl5005.