Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow split's $limit to be Whatever.
  • Loading branch information
colomon committed Jan 1, 2012
1 parent 92420ba commit 9b00872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CORE.setting
Expand Up @@ -376,7 +376,7 @@ my class Cool {
my @out;
my $i = 0;
my $last = 0;
my $limctr = $limit // Inf;
my $limctr = $limit ~~ Whatever ?? Inf !! $limit // Inf;
my $M;
while ($i <= chars $str) && ($limctr > 1) {
$M = head($matchrx($C.cursor($i++)));
Expand Down

0 comments on commit 9b00872

Please sign in to comment.