diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-06-18 19:37:41 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-06-18 19:37:41 +0000 |
commit | 227a8b4b89a56a5f0c4892bc310a24a6cfceb3b7 (patch) | |
tree | 9d62b508b060ee139abf54965068642252596cef /pp_ctl.c | |
parent | 4c50607213c2b23bfa1ef0717a5a31b40103430b (diff) | |
download | perl-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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); } } |