Skip to content

Commit

Permalink
Fix infix:<...> with a list to the right so it doesn't flow away data…
Browse files Browse the repository at this point in the history
…. Patch courtesty of (Alexey Grebenschikov)++.
  • Loading branch information
jnthn committed Jun 12, 2010
1 parent 57ec550 commit ae1300f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/operators.pm
Expand Up @@ -345,6 +345,12 @@ our multi sub infix:<...>($lhs, $rhs) {
take $y;
}
}

if $rhs ~~ Iterable {
for @($rhs) {
take $_;
}
}
}
}

Expand Down

0 comments on commit ae1300f

Please sign in to comment.