summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorRick Delaney <rick@consumercontact.com>2004-10-31 17:40:40 -0500
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-11-04 09:26:56 +0000
commit7fba1cd64145def991b6ae509bcdd709edcf43c1 (patch)
treeb5f53479439045e8c37aef6ba45b919440313d9a /pp.c
parent1b1d102f0a25a469525d1d8639733ed50d8b39b6 (diff)
downloadperl-7fba1cd64145def991b6ae509bcdd709edcf43c1.tar.gz
[perl #3038] Re: $qr = qr/^a$/m; $x =~ $qr; fails
Message-ID: <20041101034040.GC1232@biff.bort.ca> p4raw-id: //depot/perl@23471
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pp.c b/pp.c
index 94a278a9d9..2584882c1a 100644
--- a/pp.c
+++ b/pp.c
@@ -4454,6 +4454,7 @@ PP(pp_split)
I32 gimme = GIMME_V;
I32 oldsave = PL_savestack_ix;
I32 make_mortal = 1;
+ bool multiline = 0;
MAGIC *mg = (MAGIC *) NULL;
#ifdef DEBUGGING
@@ -4515,9 +4516,8 @@ PP(pp_split)
s++;
}
}
- if ((int)(pm->op_pmflags & PMf_MULTILINE) != PL_multiline) {
- SAVEINT(PL_multiline);
- PL_multiline = pm->op_pmflags & PMf_MULTILINE;
+ if (pm->op_pmflags & PMf_MULTILINE) {
+ multiline = 1;
}
if (!limit)
@@ -4599,7 +4599,7 @@ PP(pp_split)
#ifndef lint
while (s < strend && --limit &&
(m = fbm_instr((unsigned char*)s, (unsigned char*)strend,
- csv, PL_multiline ? FBMrf_MULTILINE : 0)) )
+ csv, multiline ? FBMrf_MULTILINE : 0)) )
#endif
{
dstr = NEWSV(31, m-s);