Skip Menu |

This queue is for tickets about the Iterator CPAN distribution.

Report information
The Basics
Id: 47109
Status: new
Priority: 0/
Queue: Iterator

Owner: Nobody in particular
Requestors: michael [...]

Bug Information
Severity: Critical
Broken in: 0.03
Fixed in: (no value)

Subject: Prefetch in constructor is unexpected behavior
Download (untitled) / with headers
text/plain 299b
As I can see, Iterator prefeteches next value in the constructor. This is not desirable, since you get some very unexpected results: use Test::More tests => 1; use Iterator; my $value = 0; my $iterator = new Iterator(sub { return ++$value }); is($value, 0, "Haven't called the iterator yet.");

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to