summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorYitzchak Scott-Thoennes <sthoenna@efn.org>2003-04-01 08:32:46 -0800
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-04-02 18:42:50 +0000
commit7f18b612425de6038ac70eda799f641227e16a64 (patch)
tree77f5e779bc2f95fb0295e9b1dd8bdf76df4cabb9 /pp.c
parent05f5af9aed1b243131a469af567639a4a449cc7f (diff)
downloadperl-7f18b612425de6038ac70eda799f641227e16a64.tar.gz
Re: [perl #21765] $s = ""; $n = @a = split(/,/, $s); results in undef $n
Message-ID: <u+ii+gzkgqkV092yn@efn.org> p4raw-id: //depot/perl@19135
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/pp.c b/pp.c
index 79855994b0..1bbe8955e7 100644
--- a/pp.c
+++ b/pp.c
@@ -4778,12 +4778,10 @@ PP(pp_split)
if (gimme == G_ARRAY)
RETURN;
}
- if (iters || !pm->op_pmreplroot) {
- GETTARGET;
- PUSHi(iters);
- RETURN;
- }
- RETPUSHUNDEF;
+
+ GETTARGET;
+ PUSHi(iters);
+ RETURN;
}
PP(pp_lock)