summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-07-17 13:35:51 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-07-17 13:35:51 +0000
commit6d4ff0d2f86d3c242b3f29bee3c2734df9ab8a3a (patch)
tree214aad99b5b3c414ccc9a349a7aacbdda3b96649 /pp.c
parentc03294656c9980c235cc5951a63088fd96d33704 (diff)
downloadperl-6d4ff0d2f86d3c242b3f29bee3c2734df9ab8a3a.tar.gz
Fix multiple problems with lexical @_.
p4raw-id: //depot/perl@39
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pp.c b/pp.c
index 735b884134..c288a01b30 100644
--- a/pp.c
+++ b/pp.c
@@ -3930,7 +3930,11 @@ PP(pp_split)
if (pm->op_pmreplroot)
ary = GvAVn((GV*)pm->op_pmreplroot);
else if (gimme != G_ARRAY)
+#ifdef USE_THREADS
+ ary = (AV*)curpad[0];
+#else
ary = GvAVn(defgv);
+#endif /* USE_THREADS */
else
ary = Nullav;
if (ary && (gimme != G_ARRAY || (pm->op_pmflags & PMf_ONCE))) {