Re: Lazy evaluation?
- From: Mirco Wahab <wahab-mail@xxxxxx>
- Date: Wed, 14 Feb 2007 12:01:59 +0100
Michele Dondi wrote:
On Tue, 13 Feb 2007 20:14:13 -0600, Rob Hoelz <hoelz@xxxxxxxx> wrote:local $\ = "\n";
foreach $num (1..1000_000_000) {
print $num;
}
I seem to remember that this particular one is optimized, but I'm not
really sure if up to the point of lazy evaluation.
The above (foreach list) *is* lazy evaluated (at least
in my in 5.8.8/Linux), whereas the list in
print map { exit } (1..1000_000_000);
is not (panic: realloc at lazy.pl al line ##).
Regards
Mirco
.
- Follow-Ups:
- Re: Lazy evaluation?
- From: John W. Krahn
- Re: Lazy evaluation?
- References:
- Lazy evaluation?
- From: Rob Hoelz
- Lazy evaluation?
- Prev by Date: Re: Lazy evaluation?
- Next by Date: problem CGI
- Previous by thread: Re: Lazy evaluation?
- Next by thread: Re: Lazy evaluation?
- Index(es):
Relevant Pages
|