Message-ID: <u+ii+gzkgqkV092yn@efn.org>
p4raw-id: //depot/perl@19135
if (gimme == G_ARRAY)
RETURN;
}
- if (iters || !pm->op_pmreplroot) {
- GETTARGET;
- PUSHi(iters);
- RETURN;
- }
- RETPUSHUNDEF;
+
+ GETTARGET;
+ PUSHi(iters);
+ RETURN;
}
PP(pp_lock)
require './test.pl';
}
-plan tests => 52;
+plan tests => 54;
$FS = ':';
{
$p="a,b";
utf8::upgrade $p;
- @a=split(/[, ]+/,$p);
+ eval { @a=split(/[, ]+/,$p) };
is ("$@-@a-", '-a b-', '#20912 - split() to array with /[]+/ and utf8');
}
+
+{
+ is (\@a, \@{"a"}, '@a must be global for following test');
+ $p="";
+ $n = @a = split /,/,$p;
+ is ($n, 0, '#21765 - pmreplroot hack used to return undef for 0 iters');
+}