summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-09 06:26:04 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-09 06:26:04 +0000
commitce3b816e7fbb57d1e6fa36b1ffbe584312f4d591 (patch)
treee833c609e88081b33ede467ece05c0dfaab1699c /op.c
parent0f1923bdafbbf46153592d4c0bb426b7e17d90d7 (diff)
downloadperl-ce3b816e7fbb57d1e6fa36b1ffbe584312f4d591.tar.gz
demand-load utf8.pm in swash routines
p4raw-id: //depot/perl@5622
Diffstat (limited to 'op.c')
-rw-r--r--op.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/op.c b/op.c
index 689fc18aba..19be53507e 100644
--- a/op.c
+++ b/op.c
@@ -5862,7 +5862,13 @@ Perl_ck_require(pTHX_ OP *o)
--SvCUR(kid->op_sv);
}
}
- sv_catpvn(kid->op_sv, ".pm", 3);
+ if (SvREADONLY(kid->op_sv)) {
+ SvREADONLY_off(kid->op_sv);
+ sv_catpvn(kid->op_sv, ".pm", 3);
+ SvREADONLY_on(kid->op_sv);
+ }
+ else
+ sv_catpvn(kid->op_sv, ".pm", 3);
}
}
return ck_fun(o);