Adrian M. Enache [Sat, 15 Feb 2003 00:37:40 +0000 (02:37 +0200)]
Message-ID: <
20030214223740.GA13575@ratsnest.hole>
p4raw-id: //depot/perl@18708
}
/* temporarily switch stacks */
SWITCHSTACK(PL_curstack, ary);
+ PL_curstackinfo->si_stack = ary;
make_mortal = 0;
}
}
if (realarray) {
if (!mg) {
SWITCHSTACK(ary, oldstack);
+ PL_curstackinfo->si_stack = oldstack;
if (SvSMAGICAL(ary)) {
PUTBACK;
mg_set((SV*)ary);
require './test.pl';
}
-plan tests => 49;
+plan tests => 50;
$FS = ':';
is(join (':',@d), 'readin:database:readout', "[perl #18195]")
}
}
+
+{
+ $p="a,b";
+ utf8::upgrade $p;
+ @a=split(/[, ]+/,$p);
+ is ("$@-@a-", '-a b-', '#20912 - split() to array with /[]+/ and utf8');
+}