Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Set-CrossProduct CPAN distribution.

Report information
The Basics
Id: 55062
Status: resolved
Priority: 0/
Queue: Set-CrossProduct

People
Owner: bdfoy [...] cpan.org
Requestors: HINDMAN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 1.93
Fixed in: (no value)



Subject: Unexpected behavior for reset_cursor method
Not sure whether this is a bug or a misunderstanding on my part. If the latter, perhaps an additional sentence in the documentation for reset_cursor() would be helpful. use strict; use warnings; use Set::CrossProduct; my @data = ([ qw(a b) ], [ qw(X Y Z) ]); my $iter = Set::CrossProduct->new(\@data); print "@$_\n" while $_ = $iter->get; # I had expected that this would allow me to run through # the iterations again, but it does not. $iter->reset_cursor; print "@$_\n" while $_ = $iter->get;
On Sun Feb 28 10:07:20 2010, HINDMAN wrote: Show quoted text
> Not sure whether this is a bug or a misunderstanding on my part. If the > latter, perhaps an additional sentence in the documentation for > reset_cursor() would be helpful.
This is fixed in 1.94. The reset_cursor was not resetting the flag that told the iterator it had gone through all of the elements.