This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Re: [ID 20010815.012] Unfortunate interaction between -0 cmd line arg & (??{CODE...
[perl5.git]
/
mg.c
diff --git
a/mg.c
b/mg.c
index
3de4420
..
4fc2ffc
100644
(file)
--- a/
mg.c
+++ b/
mg.c
@@
-1911,10
+1911,8
@@
Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
PL_multiline = (i != 0);
break;
case '/':
- SvREFCNT_dec(PL_nrs);
- PL_nrs = newSVsv(sv);
SvREFCNT_dec(PL_rs);
- PL_rs =
SvREFCNT_inc(PL_nrs
);
+ PL_rs =
newSVsv(sv
);
break;
case '\\':
if (PL_ors_sv)