Skip to content

Commit

Permalink
If the generating Block in the series operator returns something unde…
Browse files Browse the repository at this point in the history
…fined, the series terminates.
  • Loading branch information
colomon committed Jun 18, 2010
1 parent 30db218 commit 28aaf32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/operators.pm
Expand Up @@ -395,7 +395,7 @@ our multi sub infix:<...>(@lhs is copy, $rhs) {

if !$limit.defined || $limit cmp $j != 0 {
loop {
my $i = $next.(|@args);
my $i = $next.(|@args) // last;
my $j = $i;

my $cur_cmp = 1;
Expand Down

0 comments on commit 28aaf32

Please sign in to comment.