Lazy evaluation?
- From: Rob Hoelz <hoelz@xxxxxxxx>
- Date: Tue, 13 Feb 2007 20:14:13 -0600
In a statement like this:
local $\ = "\n";
foreach $num (1..1000_000_000) {
print $num;
}
or this:
local $\ = "\n";
foreach $line (<$handle>) {
chomp $line;
print $line;
}
does Perl use lazy evaluation? Thanks!
.
- Follow-Ups:
- Re: Lazy evaluation?
- From: xhoster
- Re: Lazy evaluation?
- From: John W. Krahn
- Re: Lazy evaluation?
- Prev by Date: FAQ 4.51 How do I permute N elements of a list?
- Next by Date: Bind 9 administration module(s)
- Previous by thread: FAQ 4.51 How do I permute N elements of a list?
- Next by thread: Re: Lazy evaluation?
- Index(es):
Relevant Pages
|