summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJohn Peacock <jpeacock@rowman.com>2002-08-10 11:56:22 -0400
committerhv <hv@crypt.org>2002-08-20 14:51:16 +0000
commit92f0c2656233063d579e19d8c63f7cbf6ce7b9a2 (patch)
treede9b1657ee61c55fe0efcd69d94f058b776800ae /sv.c
parent464b080a310708e7a2a4f76cfdc5ca4039ba758d (diff)
downloadperl-92f0c2656233063d579e19d8c63f7cbf6ce7b9a2.tar.gz
[REVISED PATCH] Magic v-strings
Message-id: <3D556FE6.6000404@rowman.com> plus a bit of cleanup p4raw-id: //depot/perl@17742
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sv.c b/sv.c
index 54e7d03513..49f5c75f7f 100644
--- a/sv.c
+++ b/sv.c
@@ -4023,6 +4023,11 @@ Perl_sv_setsv_flags(pTHX_ SV *dstr, register SV *sstr, I32 flags)
SvIsUV_on(dstr);
SvIVX(dstr) = SvIVX(sstr);
}
+ if (SvVOK(sstr)) {
+ MAGIC *mg = SvMAGIC(sstr);
+ sv_magicext(dstr, NULL, PERL_MAGIC_vstring, NULL,
+ mg->mg_ptr, mg->mg_len);
+ }
}
else if (sflags & SVp_IOK) {
if (sflags & SVf_IOK)