summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorRick Delaney <rick@consumercontact.com>2004-07-20 12:53:54 -0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-07-21 08:47:14 +0000
commit04ab2c8763f1a01bee803d3ef65890b775f28c21 (patch)
tree6151ff0a0728e74a309bc82c0f1ac3c40c6fe571 /pp.c
parent03874afe4126e47a07c482418278c13f14c14597 (diff)
downloadperl-04ab2c8763f1a01bee803d3ef65890b775f28c21.tar.gz
Re: [perl #30688] Empty slice arg with ($;$) prototype
Message-ID: <20040720205353.GA970@biff.bort.ca> p4raw-id: //depot/perl@23145
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp.c b/pp.c
index 51cd5d46aa..2b38805a10 100644
--- a/pp.c
+++ b/pp.c
@@ -3749,7 +3749,7 @@ PP(pp_aslice)
}
if (GIMME != G_ARRAY) {
MARK = ORIGMARK;
- *++MARK = *SP;
+ *++MARK = SP > ORIGMARK ? *SP : &PL_sv_undef;
SP = MARK;
}
RETURN;
@@ -3949,7 +3949,7 @@ PP(pp_hslice)
}
if (GIMME != G_ARRAY) {
MARK = ORIGMARK;
- *++MARK = *SP;
+ *++MARK = SP > ORIGMARK ? *SP : &PL_sv_undef;
SP = MARK;
}
RETURN;