summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-06-18 19:37:41 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-06-18 19:37:41 +0000
commit227a8b4b89a56a5f0c4892bc310a24a6cfceb3b7 (patch)
tree9d62b508b060ee139abf54965068642252596cef /pp_ctl.c
parent4c50607213c2b23bfa1ef0717a5a31b40103430b (diff)
downloadperl-227a8b4b89a56a5f0c4892bc310a24a6cfceb3b7.tar.gz
back out problematic change#1105, tweak perlsub.pod
p4raw-link: @1105 on //depot/perl: e2d46a1de163ba101bb4392a8fa6d97ca3c9a323 p4raw-id: //depot/perl@1146
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 9b924bc0f8..444036ea7e 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -76,8 +76,8 @@ PP(pp_regcomp) {
MAGIC *mg = Null(MAGIC*);
tmpstr = POPs;
- if(SvROK(tmpstr) || SvRMAGICAL(tmpstr)) {
- SV *sv = SvROK(tmpstr) ? SvRV(tmpstr) : tmpstr;
+ if(SvROK(tmpstr)) {
+ SV *sv = SvRV(tmpstr);
if(SvMAGICAL(sv))
mg = mg_find(sv, 'r');
}
@@ -101,7 +101,6 @@ PP(pp_regcomp) {
pm->op_pmflags = pm->op_pmpermflags; /* reset case sensitivity */
pm->op_pmregexp = pregcomp(t, t + len, pm);
- sv_magic(tmpstr,(SV*)ReREFCNT_inc(pm->op_pmregexp),'r',0,0);
}
}